mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
58b56b9d78
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue