mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/google: always set additional_zones on read
This commit is contained in:
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…
Reference in New Issue
Block a user