diff --git a/builtin/providers/google/resource_container_cluster.go b/builtin/providers/google/resource_container_cluster.go index a61149d096..fd9aa43a96 100644 --- a/builtin/providers/google/resource_container_cluster.go +++ b/builtin/providers/google/resource_container_cluster.go @@ -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)