Unverified Commit 9c591b0c authored by Anshul Sharma's avatar Anshul Sharma Committed by GitHub

Replace error string with const

parent 1dbb4197
...@@ -1375,8 +1375,7 @@ func (c *Cloud) ensureSSLNegotiationPolicy(loadBalancer *elb.LoadBalancerDescrip ...@@ -1375,8 +1375,7 @@ func (c *Cloud) ensureSSLNegotiationPolicy(loadBalancer *elb.LoadBalancerDescrip
if err != nil { if err != nil {
if aerr, ok := err.(awserr.Error); ok { if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() { switch aerr.Code() {
case "PolicyNotFound": case elb.ErrCodePolicyNotFoundException:
// TODO change from string to `elb.ErrCodePolicyNotFoundException` once the AWS SDK is updated
default: default:
return fmt.Errorf("error describing security policies on load balancer: %q", err) return fmt.Errorf("error describing security policies on load balancer: %q", err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment