mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 08:37:18 +01:00
fix: Remove empty "" from node group names output when node group creation is disabled (#2197)
This commit is contained in:
@@ -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])
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user