mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
azurearm: fix list_locations
Adapted API call for current Azure SDK
This commit is contained in:
parent
aebe34b1e2
commit
99a4b9d4b7
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ def avail_locations(conn=None, call=None): # pylint: disable=unused-argument
|
|||
webconn = get_conn(WebSiteManagementClient)
|
||||
|
||||
ret = {}
|
||||
regions = webconn.global_model.get_subscription_geo_regions()
|
||||
regions = webconn.list_geo_regions()
|
||||
if hasattr(regions, 'value'):
|
||||
regions = regions.value
|
||||
for location in regions: # pylint: disable=no-member
|
||||
|
|
Loading…
Add table
Reference in a new issue