Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#2397 from kishorj/fix-error-handling
Browse files Browse the repository at this point in the history
Fix listener utils error handling
  • Loading branch information
k8s-ci-robot authored Dec 3, 2021
2 parents 0b5c5bd + ded2882 commit 27108a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/deploy/elbv2/listener_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ func buildSDKActions(modelActions []elbv2model.Action, featureGates config.Featu
sdkActions = make([]*elbv2sdk.Action, 0, len(modelActions))
for index, modelAction := range modelActions {
sdkAction, err := buildSDKAction(modelAction, featureGates)
sdkAction.Order = awssdk.Int64(int64(index) + 1)
if err != nil {
return nil, err
}
sdkAction.Order = awssdk.Int64(int64(index) + 1)
sdkActions = append(sdkActions, sdkAction)
}
}
Expand Down Expand Up @@ -56,7 +56,7 @@ func buildSDKAction(modelAction elbv2model.Action, featureGates config.FeatureGa
if len(forwardConfig.TargetGroups) == 1 {
sdkObj.TargetGroupArn = forwardConfig.TargetGroups[0].TargetGroupArn
} else {
return nil, errors.New("Weighted target groups feature is disabled.")
return nil, errors.New("weighted target groups feature is disabled")
}
} else {
sdkObj.ForwardConfig = forwardConfig
Expand Down

0 comments on commit 27108a4

Please sign in to comment.