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 2015/01/08 12:55:26 UTC

cloudstack-cloudmonkey git commit: cloudmonkey: print key when value is dictionary

Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master 387f0338f -> 7498aa58a


cloudmonkey: print key when value is dictionary

Thanks to Geoff for finding this, the output print method did not output
key in case the value is a dictionary object

Signed-off-by: Rohit Yadav <ro...@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/7498aa58
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/7498aa58
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/7498aa58

Branch: refs/heads/master
Commit: 7498aa58a2b5772e03e25f44a37907f915889ad8
Parents: 387f033
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Thu Jan 8 17:24:11 2015 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Thu Jan 8 17:24:11 2015 +0530

----------------------------------------------------------------------
 cloudmonkey/cloudmonkey.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/7498aa58/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index ee76767..8e29660 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -269,6 +269,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
                     self.monkeyprint(key + ":")
                     print_result_as_list(result[key])
                 elif isinstance(result[key], dict):
+                    self.monkeyprint(key + ":")
                     print_result_as_dict(result[key])
                 else:
                     value = unicode(result[key])