Commit 6eea2716 authored by Trevor Pounds's avatar Trevor Pounds

Guard against non AWS errors.

parent 05d6294b
...@@ -1295,7 +1295,7 @@ func (s *AWSCloud) describeLoadBalancer(region, name string) (*elb.LoadBalancerD ...@@ -1295,7 +1295,7 @@ func (s *AWSCloud) describeLoadBalancer(region, name string) (*elb.LoadBalancerD
response, err := elbClient.DescribeLoadBalancers(request) response, err := elbClient.DescribeLoadBalancers(request)
if err != nil { if err != nil {
if awsError := err.(awserr.Error); awsError != nil { if awsError, ok := err.(awserr.Error); ok {
if awsError.Code() == "LoadBalancerNotFound" { if awsError.Code() == "LoadBalancerNotFound" {
return nil, nil return nil, nil
} }
......
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