provider/google: only set additional zones on read if it had been set in the config
This commit is contained in:
parent
d2aaa4557d
commit
3efe2c942c
|
@ -444,7 +444,10 @@ func resourceContainerClusterRead(d *schema.ResourceData, meta interface{}) erro
|
||||||
|
|
||||||
d.Set("name", cluster.Name)
|
d.Set("name", cluster.Name)
|
||||||
d.Set("zone", cluster.Zone)
|
d.Set("zone", cluster.Zone)
|
||||||
|
|
||||||
|
if _, ok := d.GetOk("additional_zones"); ok {
|
||||||
d.Set("additional_zones", cluster.Locations)
|
d.Set("additional_zones", cluster.Locations)
|
||||||
|
}
|
||||||
d.Set("endpoint", cluster.Endpoint)
|
d.Set("endpoint", cluster.Endpoint)
|
||||||
|
|
||||||
masterAuth := []map[string]interface{}{
|
masterAuth := []map[string]interface{}{
|
||||||
|
|
Loading…
Reference in New Issue