Merge pull request #27144 from rallytime/softlayer-fixes

Don't stacktrace on softlayer_hw.show_all_prices if a code isn't supplied
This commit is contained in:
Mike Place 2015-09-15 15:52:09 -06:00
commit 58b56b9d78

View file

@ -611,6 +611,9 @@ def show_all_prices(call=None, kwargs=None):
'-f or --function, or with the --list-images option'
)
if kwargs is None:
kwargs = {}
conn = get_conn(service='SoftLayer_Product_Package')
if 'code' not in kwargs:
return conn.getCategories(id=50)