provider/google: always set additional_zones on read

pull/11650/head
Dana Hoffman 9 years ago
parent 260e803880
commit a3ca05a3c9

@ -442,15 +442,15 @@ func resourceContainerClusterRead(d *schema.ResourceData, meta interface{}) erro
d.Set("name", cluster.Name)
d.Set("zone", cluster.Zone)
locations := []string{}
if len(cluster.Locations) > 1 {
locations := []string{}
for _, location := range cluster.Locations {
if location != cluster.Zone {
locations = append(locations, location)
}
}
d.Set("additional_zones", locations)
}
d.Set("additional_zones", locations)
d.Set("endpoint", cluster.Endpoint)

Loading…
Cancel
Save