incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [45/50] [abbrv] git commit: cli: extract apicmd response using the apiname+response key
Date Mon, 24 Dec 2012 00:57:38 GMT
cli: extract apicmd response using the apiname+response key

Signed-off-by: Rohit Yadav <bhaisaab@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/api_refactoring
Commit: 0f2a0950b6e7e23c0919d36e1db0e457cd228578
Parents: 5658fc4
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Sun Dec 16 22:10:03 2012 -0800
Committer: Rohit Yadav <bhaisaab@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)


Mime
View raw message