Correctly update regional resource. (#1887)

This commit is contained in:
Nathan McKinley 2018-08-16 13:57:41 -07:00 committed by GitHub
parent 085a05cefc
commit f9f95e444d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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