You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mu...@apache.org on 2013/01/25 13:55:09 UTC

[43/50] git commit: cli: give filter option only when output 'tabularized' is enabled

cli: give filter option only when output 'tabularized' is enabled

Signed-off-by: Rohit Yadav <bh...@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/events-framework
Commit: 71257d6bb4dfa1651f21c78d6ca6ede6dce91f34
Parents: 531c2f0
Author: Rohit Yadav <bh...@apache.org>
Authored: Thu Jan 24 11:28:49 2013 -0800
Committer: Rohit Yadav <bh...@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):