Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

Commit

Permalink
Fix elbv2 target group read
Browse files Browse the repository at this point in the history
Workaround for pulumi/pulumi-aws#2517
Don't return single empty map. Return empty list instead.
  • Loading branch information
danielrbradley authored and iwahbe committed Jul 7, 2023
1 parent d1b76b5 commit 9cb9e3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/service/elbv2/target_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,12 @@ func flattenTargetGroupFailover(attributes []*elbv2.TargetGroupAttribute) []inte
}
}

// Workaround for https://github.com/pulumi/pulumi-aws/issues/2517
// Don't return single empty map. Return empty list instead.
if len(m) == 0 {
return []interface{}{}
}

return []interface{}{m}
}

Expand Down

0 comments on commit 9cb9e3c

Please sign in to comment.