cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalom Bhooshi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-7669) Cloudmonkey does not return a failure exit code on error
Date Thu, 02 Oct 2014 23:22:34 GMT
Shalom Bhooshi created CLOUDSTACK-7669:
------------------------------------------

             Summary: Cloudmonkey does not return a failure exit code on error
                 Key: CLOUDSTACK-7669
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7669
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Cloudmonkey
         Environment: $ cloudmonkey --version
cloudmonkey 5.2.0
Command Line Interface for Apache CloudStack (http://cloudstack.apache.org)
            Reporter: Shalom Bhooshi


{code}
# cloudmonkey --version
cloudmonkey 5.2.0
Command Line Interface for Apache CloudStack (http://cloudstack.apache.org)

# $SHELL --version
GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)
{code}

It is difficult to tell whether cloudmonkey has successfully executed an API call when the
backend fails. Cloudmonkey ought to return a non-zero exit code on any error/unexpected failure.

{code}
#  if zones=$(cloudmonkey list zones); then 
>   echo "zones data is $zones";
> fi

zones data is 404 Client Error: Not Found

# cloudmonkey list zones; echo $?
404 Client Error: Not Found
0
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message