From e50ae403016a225e4481488c3c60bd3be893c5c3 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Wed, 24 Feb 2016 12:45:21 -0500 Subject: [PATCH] AWS: Wrap AWS error when failing to create security group ingress All AWS errors should be wrapped in a user-friendly error before returning. --- pkg/cloudprovider/providers/aws/aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudprovider/providers/aws/aws.go b/pkg/cloudprovider/providers/aws/aws.go index adad77bfeda..3f2cd8b286f 100644 --- a/pkg/cloudprovider/providers/aws/aws.go +++ b/pkg/cloudprovider/providers/aws/aws.go @@ -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