azurearm: fix list_locations

Adapted API call for current Azure SDK
This commit is contained in:
Joachim Gleissner 2019-01-10 18:12:53 +01:00
parent aebe34b1e2
commit 99a4b9d4b7

View file

@ -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