From f9f95e444d7987cca4a6fcc13e2899b8b7ab9617 Mon Sep 17 00:00:00 2001 From: Nathan McKinley Date: Thu, 16 Aug 2018 13:57:41 -0700 Subject: [PATCH] Correctly update regional resource. (#1887) --- google/resource_container_cluster.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google/resource_container_cluster.go b/google/resource_container_cluster.go index 88968af3161..f512004ce6f 100644 --- a/google/resource_container_cluster.go +++ b/google/resource_container_cluster.go @@ -1192,7 +1192,8 @@ func resourceContainerClusterUpdate(d *schema.ResourceData, meta interface{}) er } updateF := func() error { - op, err := config.clientContainerBeta.Projects.Zones.Clusters.Update(project, location, clusterName, req).Do() + name := containerClusterFullName(project, location, clusterName) + op, err := config.clientContainerBeta.Projects.Locations.Clusters.Update(name, req).Do() if err != nil { return err }