cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Yadav (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CLOUDSTACK-7669) Cloudmonkey does not return a failure exit code on error
Date Fri, 03 Oct 2014 08:31:34 GMT

     [ 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)

Mime
View raw message