Skip to content

Commit c9c4c44

Browse files
authored
fix: Ensure the existence of overrides["name_iam_objects"] before accessing
Co-authored-by: kayma <[email protected]>
1 parent 8515137 commit c9c4c44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: locals.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ locals {
1515
// custom names for instances and security groups
1616
name_runner_agent_instance = var.overrides["name_runner_agent_instance"] == "" ? local.tags["Name"] : var.overrides["name_runner_agent_instance"]
1717
name_sg = var.overrides["name_sg"] == "" ? local.tags["Name"] : var.overrides["name_sg"]
18-
name_iam_objects = var.overrides["name_iam_objects"] == "" ? local.tags["Name"] : var.overrides["name_iam_objects"]
18+
name_iam_objects = lookup(var.overrides, "name_iam_objects", "") == "" ? local.tags["Name"] : var.overrides["name_iam_objects"]
1919
runners_additional_volumes = <<-EOT
2020
%{~for volume in var.runners_additional_volumes~},"${volume}"%{endfor~}
2121
EOT

0 commit comments

Comments
 (0)