Skip to content

Commit

Permalink
Fix error message in GetDeploymentScalers
Browse files Browse the repository at this point in the history
  • Loading branch information
holyketzer committed Mar 16, 2020
1 parent 08d4757 commit d44f0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/handler/scale_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (h *ScaleHandler) GetDeploymentScalers(scaledObject *kedav1alpha1.ScaledObj
err = h.client.Get(context.TODO(), types.NamespacedName{Name: serviceAccountName, Namespace: scaledObject.GetNamespace()}, serviceAccount)
if err != nil {
closeScalers(scalersRes)
return []scalers.Scaler{}, nil, fmt.Errorf("error getting deployment: %s", err)
return []scalers.Scaler{}, nil, fmt.Errorf("error getting service account: %s", err)
}
authParams["awsRoleArn"] = serviceAccount.Annotations[kedav1alpha1.PodIdentityAnnotationEKS]
} else if podIdentity == kedav1alpha1.PodIdentityProviderAwsKiam {
Expand Down

0 comments on commit d44f0bf

Please sign in to comment.