cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [2/4] git commit: cloudmonkey: in case filter is passed and is of length 1, don't print ruler
Date Mon, 06 Oct 2014 12:09:43 GMT
cloudmonkey: in case filter is passed and is of length 1, don't print ruler

Signed-off-by: Rohit Yadav <rohit.yadav@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/3c9f4912
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/3c9f4912
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/3c9f4912

Branch: refs/heads/master
Commit: 3c9f491208cc3b84678b4869c4f2a30060c54924
Parents: 849f6a9
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Mon Oct 6 13:57:10 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Oct 6 13:57:10 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/3c9f4912/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index 6e552a6..d5d8518 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -276,7 +276,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
                     print_result_tabular(result, result_filter)
                     break
                 self.print_result(node, result_filter)
-                if len(result) > 1:
+                if result and not result_filter:
                     self.monkeyprint(self.ruler * 80)
 
         if isinstance(result, dict):


Mime
View raw message