Remove unreachable panic statement.

The availability zone always exist since it is retrieved
from the instance's EC2 metadata service during cloud
provider construction.
This commit is contained in:
Trevor Pounds 2015-10-08 23:42:41 -07:00
parent 4407ca9a64
commit 5d5013a722

View File

@ -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,