Updated Branches: refs/heads/master 99a04a416 -> 59d01bfe2
cli: Show filter only when a subject is specified in autocompletion Signed-off-by: Rohit Yadav <bhais...@apache.org> (cherry picked from commit 7ea83b82e63bc40c5fa38f7aae2032690aa7883c) Signed-off-by: Rohit Yadav <bhais...@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/master Commit: 59d01bfe2049ac1589d4bedb431cae53139c8150 Parents: 99a04a4 Author: Rohit Yadav <bhais...@apache.org> Authored: Mon Jan 28 16:30:04 2013 -0800 Committer: Rohit Yadav <bhais...@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)]