From 562c25dba83611cac4c5131bd3deede614ee3814 Mon Sep 17 00:00:00 2001 From: Dana Hoffman Date: Tue, 7 Feb 2017 19:21:00 -0800 Subject: [PATCH] provider/google: always set additional_zones on read --- resource_container_cluster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource_container_cluster.go b/resource_container_cluster.go index a61149d0..fd9aa43a 100644 --- a/resource_container_cluster.go +++ b/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)