Skip to content

Commit 9d75a63

Browse files
committed
fix: Distinguish A1 from A10 shape for image selection
Signed-off-by: Devon Crouse <[email protected]>
1 parent c8f765f commit 9d75a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/workers/locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ locals {
9090
image_id = (pool.image_type == "custom" ? pool.image_id : element(tolist(setintersection([
9191
lookup(var.image_ids, pool.image_type, null),
9292
length(regexall("GPU", pool.shape)) > 0 ? var.image_ids.gpu : var.image_ids.nongpu,
93-
length(regexall("A1", pool.shape)) > 0 ? var.image_ids.aarch64 : var.image_ids.x86_64,
93+
length(regexall("A1\\.", pool.shape)) > 0 ? var.image_ids.aarch64 : var.image_ids.x86_64,
9494
lookup(var.image_ids, format("%v %v", pool.os, split(".", pool.os_version)[0]), null),
9595
]...)), 0))
9696

0 commit comments

Comments
 (0)