mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 18:43:26 +01:00
cli: don't get the required list as params
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
98d341d932
commit
c444bb3811
@ -270,7 +270,8 @@ class CloudStackShell(cmd.Cmd):
|
|||||||
doc = api_mod.__doc__
|
doc = api_mod.__doc__
|
||||||
except AttributeError, e:
|
except AttributeError, e:
|
||||||
self.print_shell("Error: API attribute %s not found!" % 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()
|
api_name_lower = api_name.replace(verb, '').lower()
|
||||||
self.cache_verbs[verb][api_name_lower] = [api_name, params, doc]
|
self.cache_verbs[verb][api_name_lower] = [api_name, params, doc]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user