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 0730511504 for ; Sun, 31 Aug 2014 18:10:21 +0000 (UTC) Received: (qmail 96704 invoked by uid 500); 31 Aug 2014 18:10:20 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 96675 invoked by uid 500); 31 Aug 2014 18:10:20 -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 96661 invoked by uid 500); 31 Aug 2014 18:10:20 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 96656 invoked by uid 99); 31 Aug 2014 18:10:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Aug 2014 18:10:20 +0000 Date: Sun, 31 Aug 2014 18:10:20 +0000 (UTC) From: "Shalom Bhooshi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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 Shalom Bhooshi created CLOUDSTACK-7458: ------------------------------------------ Summary: 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 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)