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 2013/01/29 01:30:52 UTC

git commit: cli: Show filter only when a subject is specified in autocompletion

Updated Branches:
  refs/heads/javelin 2bfdce02f -> 7ea83b82e


cli: Show filter only when a subject is specified in autocompletion

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

Branch: refs/heads/javelin
Commit: 7ea83b82e63bc40c5fa38f7aae2032690aa7883c
Parents: 2bfdce0
Author: Rohit Yadav <bh...@apache.org>
Authored: Mon Jan 28 16:30:04 2013 -0800
Committer: Rohit Yadav <bh...@apache.org>
Committed: Mon Jan 28 16:30:04 2013 -0800

----------------------------------------------------------------------
 tools/cli/cloudmonkey/cloudmonkey.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/7ea83b82/tools/cli/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py
index ecd0c82..6487724 100644
--- a/tools/cli/cloudmonkey/cloudmonkey.py
+++ b/tools/cli/cloudmonkey/cloudmonkey.py
@@ -400,7 +400,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
                                   self.cache_verbs[verb][subject][1])
             search_string = text
 
-        if self.tabularize == "true":
+        if self.tabularize == "true" and subject != "":
             autocompletions.append("filter=")
         return [s for s in autocompletions if s.startswith(search_string)]