Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 657C9D2C5 for ; Wed, 19 Dec 2012 22:04:31 +0000 (UTC) Received: (qmail 32265 invoked by uid 500); 19 Dec 2012 22:04:28 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 32178 invoked by uid 500); 19 Dec 2012 22:04:28 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 31705 invoked by uid 99); 19 Dec 2012 22:04:27 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 22:04:27 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3E9953244F6; Wed, 19 Dec 2012 22:04:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bfederle@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [15/50] [abbrv] git commit: cli: extract apicmd response using the apiname+response key Message-Id: <20121219220427.3E9953244F6@tyr.zones.apache.org> Date: Wed, 19 Dec 2012 22:04:27 +0000 (UTC) cli: extract apicmd response using the apiname+response key Signed-off-by: Rohit Yadav Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0f2a0950 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0f2a0950 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0f2a0950 Branch: refs/heads/ui-plugins Commit: 0f2a0950b6e7e23c0919d36e1db0e457cd228578 Parents: 5658fc4 Author: Rohit Yadav Authored: Sun Dec 16 22:10:03 2012 -0800 Committer: Rohit Yadav Committed: Sun Dec 16 22:10:54 2012 -0800 ---------------------------------------------------------------------- tools/cli/cloudmonkey/cloudmonkey.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0f2a0950/tools/cli/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py index 250ea68..e59a3b3 100644 --- a/tools/cli/cloudmonkey/cloudmonkey.py +++ b/tools/cli/cloudmonkey/cloudmonkey.py @@ -312,7 +312,8 @@ class CloudStackShell(cmd.Cmd, object): if result is None: return try: - self.print_result(result.values()) + # Response is in the key "apiname+response" (lowercase) + self.print_result(result[api_name.lower()+'response']) print except Exception as e: self.print_shell("🙈 Error on parsing and printing", e)