Commit 5d5013a7 authored by Trevor Pounds's avatar Trevor Pounds

Remove unreachable panic statement.

The availability zone always exist since it is retrieved from the instance's EC2 metadata service during cloud provider construction.
parent 4407ca9a
......@@ -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,
......
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