fix: Remove empty "" from node group names output when node group creation is disabled (#2197)

This commit is contained in:
Bryant Biggs
2022-08-09 15:25:11 -04:00
committed by GitHub
parent 34dc4bd37d
commit d2f162b190

View File

@@ -179,7 +179,7 @@ output "eks_managed_node_groups" {
output "eks_managed_node_groups_autoscaling_group_names" { output "eks_managed_node_groups_autoscaling_group_names" {
description = "List of the autoscaling group names created by EKS managed node groups" 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]))
} }
################################################################################ ################################################################################
@@ -193,7 +193,7 @@ output "self_managed_node_groups" {
output "self_managed_node_groups_autoscaling_group_names" { output "self_managed_node_groups_autoscaling_group_names" {
description = "List of the autoscaling group names created by self-managed node groups" 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])
} }
################################################################################ ################################################################################