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: cloudmonkey: don't show filter= if a pending parameter is there
Date Wed, 29 Oct 2014 06:57:50 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master fa79185f7 -> 78920d02a


cloudmonkey: don't show filter= if a pending parameter is there

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/b9ad1c63
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/b9ad1c63
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/b9ad1c63

Branch: refs/heads/master
Commit: b9ad1c632d77b9697667603832f9fcce700957c6
Parents: fa79185
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Wed Oct 29 12:27:02 2014 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Wed Oct 29 12:27:02 2014 +0530

----------------------------------------------------------------------
 cloudmonkey/cloudmonkey.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/b9ad1c63/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index 526f454..2690ef8 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -398,7 +398,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
                     autocompletions = uuids
                     search_string = value
 
-        if subject != "":
+        if subject != "" and line.split(" ")[-1].find('=') == -1:
             autocompletions.append("filter=")
         return [s for s in autocompletions if s.startswith(search_string)]
 


Mime
View raw message