mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
AWS: Wrap AWS error when failing to create security group ingress
All AWS errors should be wrapped in a user-friendly error before returning.
This commit is contained in:
parent
5f553a218e
commit
e50ae40301
@ -1655,7 +1655,7 @@ func (s *AWSCloud) ensureSecurityGroupIngress(securityGroupId string, addPermiss
|
||||
_, err = s.ec2.AuthorizeSecurityGroupIngress(request)
|
||||
if err != nil {
|
||||
glog.Warning("Error authorizing security group ingress", err)
|
||||
return false, err
|
||||
return false, fmt.Errorf("error authorizing security group ingress: %v", err)
|
||||
}
|
||||
|
||||
return true, nil
|
||||
|
Loading…
Reference in New Issue
Block a user