Skip to content

Commit

Permalink
feat(AwsVpcPeering): capitalize status state
Browse files Browse the repository at this point in the history
  • Loading branch information
vandjelk committed Nov 26, 2024
1 parent 311de9a commit 3adee44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/kcp/provider/aws/vpcpeering/updateStatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ func updateStatus(ctx context.Context, st composed.State) (error, context.Contex
ec2types.VpcPeeringConnectionStateReasonCodeDeleting: cloudcontrol1beta1.VpcPeeringConnectionStateReasonCodeDeleting,
}

val, ok := codes[state.vpcPeering.Status.Code]
if ok {
statusState = val
ok := false
if statusState, ok = codes[state.vpcPeering.Status.Code]; !ok {
statusState = "Unknown"
}
}

Expand Down

0 comments on commit 3adee44

Please sign in to comment.