summaryrefslogtreecommitdiff
path: root/heatclient/v1
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-08-27 05:03:39 +0000
committerGerrit Code Review <review@openstack.org>2014-08-27 05:03:39 +0000
commitc343c46895bac5707a816ea2b66ebcdc8f354a38 (patch)
tree05bea8a85e2b149fa118e85ce1488494b371c0d2 /heatclient/v1
parent8fe0c09e76513829056a5bb69efa10a755414949 (diff)
parentc195f035fe85379cfb1171b43ab92c6f166f8b91 (diff)
downloadpython-heatclient-c343c46895bac5707a816ea2b66ebcdc8f354a38.tar.gz
Merge "Remove unused/mutable default args"
Diffstat (limited to 'heatclient/v1')
-rw-r--r--heatclient/v1/shell.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/heatclient/v1/shell.py b/heatclient/v1/shell.py
index 125877e..a02b8d2 100644
--- a/heatclient/v1/shell.py
+++ b/heatclient/v1/shell.py
@@ -409,7 +409,7 @@ def do_stack_update(hc, args):
do_stack_list(hc)
-def do_list(hc, args=None):
+def do_list(hc):
'''DEPRECATED! Use stack-list instead.'''
logger.warning('DEPRECATED! Use stack-list instead.')
do_stack_list(hc)
@@ -486,16 +486,15 @@ def do_output_show(hc, args):
print (jsonutils.dumps(value, indent=2, ensure_ascii=False))
-def do_resource_type_list(hc, args={}):
+def do_resource_type_list(hc, args):
'''List the available resource types.'''
- kwargs = {}
- types = hc.resource_types.list(**kwargs)
+ types = hc.resource_types.list()
utils.print_list(types, ['resource_type'], sortby_index=0)
@utils.arg('resource_type', metavar='<RESOURCE_TYPE>',
help='Resource type to get the details for.')
-def do_resource_type_show(hc, args={}):
+def do_resource_type_show(hc, args):
'''Show the resource type.'''
try:
resource_type = hc.resource_types.get(args.resource_type)