You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2012/12/17 07:11:23 UTC
git commit: cli: extract apicmd response using the apiname+response
key
Updated Branches:
refs/heads/master 5658fc424 -> 0f2a0950b
cli: extract apicmd response using the apiname+response key
Signed-off-by: Rohit Yadav <bh...@apache.org>
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/master
Commit: 0f2a0950b6e7e23c0919d36e1db0e457cd228578
Parents: 5658fc4
Author: Rohit Yadav <bh...@apache.org>
Authored: Sun Dec 16 22:10:03 2012 -0800
Committer: Rohit Yadav <bh...@apache.org>
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)