Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 619c4e0

Browse files
serbrechjackfrancis
authored andcommitted
adding francecentral to azureconst generative script (#2164)
1 parent a19784e commit 619c4e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/acsengine/Get-AzureConstants.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
time = strftime("%Y-%m-%d %H:%M:%S", gmtime())
88

99
def getAllSizes():
10-
locations = json.loads(subprocess.check_output(['az', 'account', 'list-locations']))
10+
locations = json.loads(subprocess.check_output(['az', 'account', 'list-locations']).decode('utf-8'))
1111
sizeMap = {}
1212

1313
for location in locations:
14-
sizes = json.loads(subprocess.check_output(['az', 'vm', 'list-sizes', '-l', location['name']]))
14+
sizes = json.loads(subprocess.check_output(['az', 'vm', 'list-sizes', '-l', location['name']]).decode('utf-8'))
1515
for size in sizes:
1616
if not size['name'] in sizeMap and not size['name'].split('_')[0] == 'Basic':
1717
sizeMap[size['name']] = size
@@ -43,7 +43,7 @@ def getMasterAgentMap(sizeMap):
4343
return agentMap
4444

4545
def getLocations():
46-
locations = json.loads(subprocess.check_output(['az', 'account', 'list-locations']))
46+
locations = json.loads(subprocess.check_output(['az', 'account', 'list-locations']).decode('utf-8'))
4747

4848
locationList = [l['name'] for l in locations]
4949

@@ -87,6 +87,7 @@ def getFileContents(dcosMasterMap, masterAgentMap, kubernetesAgentMap, sizeMap,
8787
"usgoviowa",
8888
"usgovarizona",
8989
"usgovtexas",
90+
"francecentral",
9091
}
9192
9293
// GetDCOSMasterAllowedSizes returns the master allowed sizes

0 commit comments

Comments
 (0)