mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix avail_locations function for the softlayer_hw driver in 2015.5
Fixes #27406
This commit is contained in:
parent
3746085587
commit
9d8a3d8303
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,8 @@ def avail_locations(call=None):
|
|||
|
||||
available = conn.getAvailableLocations(id=50)
|
||||
for location in available:
|
||||
if location.get('isAvailable', 0) is 0:
|
||||
continue
|
||||
ret[location['locationId']]['available'] = True
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue