Skip to content

Commit

Permalink
* rebase and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-amarnath committed Mar 23, 2018
1 parent b3ff0e5 commit fc27105
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions google/resource_container_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1180,13 +1180,12 @@ func resourceContainerClusterUpdate(d *schema.ResourceData, meta interface{}) er
}

updateF := func() error {
op, err := config.clientContainerBeta.Projects.Zones.Clusters.Update(
project, zoneName, clusterName, req).Do()
op, err := config.clientContainerBeta.Projects.Zones.Clusters.Update(project, location, clusterName, req).Do()
if err != nil {
return err
}
// Wait until it's updated
return containerSharedOperationWait(config, op, project, zoneName, "updating GKE cluster pod security policy config", timeoutInMinutes, 2)
return containerSharedOperationWait(config, op, project, location, "updating GKE cluster pod security policy config", timeoutInMinutes, 2)
}
if err := lockedCall(lockKey, updateF); err != nil {
return err
Expand Down

0 comments on commit fc27105

Please sign in to comment.