mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +00:00
add retries on create for container cluster (#2352)
<!-- This change is generated by MagicModules. --> /cc @danawillow
This commit is contained in:
parent
b857fd457c
commit
b7801660c9
@ -659,7 +659,11 @@ func resourceContainerClusterCreate(d *schema.ResourceData, meta interface{}) er
|
|||||||
defer mutexKV.Unlock(containerClusterMutexKey(project, location, clusterName))
|
defer mutexKV.Unlock(containerClusterMutexKey(project, location, clusterName))
|
||||||
|
|
||||||
parent := fmt.Sprintf("projects/%s/locations/%s", project, location)
|
parent := fmt.Sprintf("projects/%s/locations/%s", project, location)
|
||||||
op, err := config.clientContainerBeta.Projects.Locations.Clusters.Create(parent, req).Do()
|
var op interface{}
|
||||||
|
err = retry(func() error {
|
||||||
|
op, err = config.clientContainerBeta.Projects.Locations.Clusters.Create(parent, req).Do()
|
||||||
|
return err
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user