Skip to content

Commit

Permalink
update flattenEKSConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ValyaB committed Mar 25, 2024
1 parent 76e7ac4 commit da28a94
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions castai/resource_node_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,17 +669,13 @@ func flattenEKSConfig(config *sdk.NodeconfigV1EKSConfig) []map[string]interface{
if v := config.TargetGroup; v != nil {
if v.Arn != nil {
if v.Port != nil {
m["target_group"] = []map[string]interface{}{
{
"arn": *v.Arn,
"port": *v.Port,
},
m["target_group"] = map[string]interface{}{
"arn": *v.Arn,
"port": *v.Port,
}
} else {
m["target_group"] = []map[string]interface{}{
{
"arn": *v.Arn,
},
m["target_group"] = map[string]interface{}{
"arn": *v.Arn,
}
}
}
Expand Down

0 comments on commit da28a94

Please sign in to comment.