cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject cloudstack-cloudmonkey git commit: cloudmonkey: do a case-insensitive missing api arg search
Date Tue, 03 Feb 2015 09:31:23 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master b0221bc3b -> 7f48184fe


cloudmonkey: do a case-insensitive missing api arg search

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

Branch: refs/heads/master
Commit: 7f48184fe5d3d24e99e112367c7006f60d5c34ea
Parents: b0221bc
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Tue Feb 3 15:01:00 2015 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Tue Feb 3 15:01:00 2015 +0530

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


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/7f48184f/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index ac951ad..94594c6 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -380,7 +380,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
 
         missing = []
         if verb in self.apicache and subject in self.apicache[verb]:
-            missing = filter(lambda x: x not in [key.split('[')[0]
+            missing = filter(lambda x: x not in [key.split('[')[0].lower()
                                                  for key in args_dict],
                              self.apicache[verb][subject]['requiredparams'])
 


Mime
View raw message