From 0f2a0950b6e7e23c0919d36e1db0e457cd228578 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Sun, 16 Dec 2012 22:10:03 -0800 Subject: [PATCH] cli: extract apicmd response using the apiname+response key Signed-off-by: Rohit Yadav --- tools/cli/cloudmonkey/cloudmonkey.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py index 250ea68a5f1..e59a3b36164 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)