Skip to content

Commit

Permalink
fix: Remove empty "" from node group names output when node group c…
Browse files Browse the repository at this point in the history
…reation is disabled (#2197)
  • Loading branch information
baibailiha authored Feb 8, 2024
1 parent 436c55c commit 3495c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ output "eks_managed_node_groups" {

output "eks_managed_node_groups_autoscaling_group_names" {
description = "List of the autoscaling group names created by EKS managed node groups"
value = flatten([for group in module.eks_managed_node_group : group.node_group_autoscaling_group_names])
value = compact(flatten([for group in module.eks_managed_node_group : group.node_group_autoscaling_group_names]))
}

################################################################################
Expand All @@ -193,7 +193,7 @@ output "self_managed_node_groups" {

output "self_managed_node_groups_autoscaling_group_names" {
description = "List of the autoscaling group names created by self-managed node groups"
value = [for group in module.self_managed_node_group : group.autoscaling_group_name]
value = compact([for group in module.self_managed_node_group : group.autoscaling_group_name])
}

################################################################################
Expand Down

0 comments on commit 3495c0d

Please sign in to comment.