Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 973D217A8E for ; Fri, 3 Oct 2014 12:05:34 +0000 (UTC) Received: (qmail 15231 invoked by uid 500); 3 Oct 2014 12:05:34 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 15197 invoked by uid 500); 3 Oct 2014 12:05:34 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 15187 invoked by uid 500); 3 Oct 2014 12:05:34 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 15184 invoked by uid 99); 3 Oct 2014 12:05:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 12:05:34 +0000 Date: Fri, 3 Oct 2014 12:05:34 +0000 (UTC) From: "Rohit Yadav (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLOUDSTACK-7458) CloudMonkey does not return a failure exit code on empty API response MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)