cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [4/7] git commit: cli: don't get the required list as params
Date Mon, 05 Nov 2012 16:29:19 GMT
cli: don't get the required list as params

Signed-off-by: Rohit Yadav <bhaisaab@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/c444bb38
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/c444bb38
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/c444bb38

Branch: refs/heads/master
Commit: c444bb3811a146107fd1c47dcf190bfad5fac589
Parents: 98d341d
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Mon Nov 5 21:57:11 2012 +0530
Committer: Rohit Yadav <bhaisaab@apache.org>
Committed: Mon Nov 5 21:59:03 2012 +0530

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


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c444bb38/tools/cli/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py
index ebb03e7..05ea886 100644
--- a/tools/cli/cloudmonkey/cloudmonkey.py
+++ b/tools/cli/cloudmonkey/cloudmonkey.py
@@ -270,7 +270,8 @@ class CloudStackShell(cmd.Cmd):
                 doc = api_mod.__doc__
             except AttributeError, e:
                 self.print_shell("Error: API attribute %s not found!" % e)
-            params = filter(lambda x: '__' not in x, dir(api_cmd()))
+            params = filter(lambda x: '__' not in x and 'required' not in x,
+                            dir(api_cmd()))
             api_name_lower = api_name.replace(verb, '').lower()
             self.cache_verbs[verb][api_name_lower] = [api_name, params, doc]
 


Mime
View raw message