From 5d5013a7221e645071e835e9e716a6dcb1339515 Mon Sep 17 00:00:00 2001 From: Trevor Pounds Date: Thu, 8 Oct 2015 23:42:41 -0700 Subject: [PATCH] Remove unreachable panic statement. The availability zone always exist since it is retrieved from the instance's EC2 metadata service during cloud provider construction. --- pkg/cloudprovider/providers/aws/aws.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/cloudprovider/providers/aws/aws.go b/pkg/cloudprovider/providers/aws/aws.go index cda6ecf4938..d4cc2d01b83 100644 --- a/pkg/cloudprovider/providers/aws/aws.go +++ b/pkg/cloudprovider/providers/aws/aws.go @@ -744,10 +744,6 @@ func (aws *AWSCloud) List(filter string) ([]string, error) { // GetZone implements Zones.GetZone func (self *AWSCloud) GetZone() (cloudprovider.Zone, error) { - if self.availabilityZone == "" { - // Should be unreachable - panic("availabilityZone not set") - } return cloudprovider.Zone{ FailureDomain: self.availabilityZone, Region: self.region,