[ https://issues.apache.org/jira/browse/CLOUDSTACK-7458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rohit Yadav closed CLOUDSTACK-7458. ----------------------------------- Resolution: Duplicate Related issue: CLOUDSTACK-7669 > CloudMonkey does not return a failure exit code on empty API response > --------------------------------------------------------------------- > > Key: CLOUDSTACK-7458 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7458 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Cloudmonkey > Environment: CloudMonkey 5.2 > Reporter: Shalom Bhooshi > Assignee: Rohit Yadav > > It would be useful to have cloudmonkey return a failure (non-zero) exist code > when an empty response is returned from the management server. > e.g. In the following case - the caller script (bash) is required to > additionally test whether the output is empty-or-not whereas this would not > be needed if cloudmonkey returned an appropriate exit code. > set -e > if sos=$( cloudmonkey list serviceofferings > keyword="some_non_existant_so_name" ); then > if [[ -z $sos ]]; then warn "Empty input"; exit 2; fi > fi -- This message was sent by Atlassian JIRA (v6.3.4#6332)