Skip to content

Commit 6cda0be

Browse files
committed
Add support for Azure ARM templates in launch configs
They don't include location on top level, but as parameters of the template
1 parent aa8efd7 commit 6cda0be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tcadmin/resources/worker_pool.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def sort_key(lc):
3232
return lc["zone"] # gcp
3333
if "location" in lc:
3434
return lc["location"] # azure
35+
if "armDeployment" in lc:
36+
return lc["armDeployment"]["parameters"]["location"]["value"] # azure ARM templates
3537
if "region" in lc:
3638
return lc["region"] # aws
3739

0 commit comments

Comments
 (0)