incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [1/2] git commit: cli: give filter option only when output 'tabularized' is enabled
Date Thu, 24 Jan 2013 22:48:08 GMT
cli: give filter option only when output 'tabularized' is enabled

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/71257d6b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/71257d6b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/71257d6b

Branch: refs/heads/master
Commit: 71257d6bb4dfa1651f21c78d6ca6ede6dce91f34
Parents: 531c2f0
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Thu Jan 24 11:28:49 2013 -0800
Committer: Rohit Yadav <bhaisaab@apache.org>
Committed: Thu Jan 24 11:28:49 2013 -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/71257d6b/tools/cli/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py
index d679e50..ace6a8b 100644
--- a/tools/cli/cloudmonkey/cloudmonkey.py
+++ b/tools/cli/cloudmonkey/cloudmonkey.py
@@ -388,7 +388,8 @@ class CloudMonkeyShell(cmd.Cmd, object):
                                   self.cache_verbs[verb][subject][1])
             search_string = text
 
-        autocompletions.append("filter=")
+        if self.tabularize == "true":
+            autocompletions.append("filter=")
         return [s for s in autocompletions if s.startswith(search_string)]
 
     def do_api(self, args):


Mime
View raw message