[ https://issues.apache.org/jira/browse/CLOUDSTACK-7669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rohit Yadav reassigned CLOUDSTACK-7669: --------------------------------------- Assignee: Rohit Yadav > 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 > Assignee: Rohit Yadav > > {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)