Skip to content

Commit

Permalink
Handle case where no updated attributes are supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Sleppy committed Jan 10, 2024
1 parent cfead05 commit 0cd18b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/elbv2/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,10 @@ func modifyLoadBalancerAttributes(ctx context.Context, conn *elbv2.ELBV2, arn st

// Not all attributes are supported in all partitions.
for {
if len(input.Attributes) == 0 {
return nil
}

_, err := conn.ModifyLoadBalancerAttributesWithContext(ctx, input)

if err != nil {
Expand Down

0 comments on commit 0cd18b9

Please sign in to comment.