provider/google: only set additional zones on read if it had been set in the config

This commit is contained in:
Dana Hoffman 2017-02-02 17:37:03 -08:00
parent d2aaa4557d
commit 3efe2c942c
1 changed files with 4 additions and 1 deletions

View File

@ -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{}{