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/31 15:23:00 UTC

[4/50] [abbrv] git commit: refs/heads/events-framework - cli: Show filter only when a subject is specified in autocompletion

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

Signed-off-by: Rohit Yadav <bh...@apache.org>
(cherry picked from commit 7ea83b82e63bc40c5fa38f7aae2032690aa7883c)

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

Branch: refs/heads/events-framework
Commit: 59d01bfe2049ac1589d4bedb431cae53139c8150
Parents: 99a04a4
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:31:12 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/59d01bfe/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)]