You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2012/11/05 17:29:19 UTC

[4/7] git commit: cli: don't get the required list as params

cli: don't get the required list as params

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/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 <bh...@apache.org>
Authored: Mon Nov 5 21:57:11 2012 +0530
Committer: Rohit Yadav <bh...@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]