Skip to content

Commit

Permalink
update local to fix bug if a nodegroup doesn't have labels
Browse files Browse the repository at this point in the history
  • Loading branch information
klibr007 committed Sep 2, 2024
1 parent fb40776 commit 462fd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ locals {
nodegroup : key,
"k8s.io/cluster-autoscaler/node-template/label/nodegroup" : key
},
merge(local.node_group_labels[0][key]...),
length(local.node_group_labels) > 0 && local.node_group_labels[0][key] != null ? merge(local.node_group_labels[0][key]...) : {},
merge(local.node_groups_tags[key]),
var.tags,
var.compute_tags
Expand Down

0 comments on commit 462fd01

Please sign in to comment.