mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-06-29 06:42:36 +00:00
Terraform - AccessContextManager autogenerated operations (#3338)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
12a25f053b
commit
e12b5c2a04
|
@ -1,3 +0,0 @@
|
|||
package google
|
||||
|
||||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now.
|
|
@ -68,7 +68,7 @@ func resourceGoogleFolderCreate(d *schema.ResourceData, meta interface{}) error
|
|||
return err
|
||||
}
|
||||
|
||||
err = resourceManagerOperationWaitTime(config, opAsMap, "", "creating folder", int(d.Timeout(schema.TimeoutCreate).Minutes()))
|
||||
err = resourceManagerOperationWaitTime(config, opAsMap, "creating folder", int(d.Timeout(schema.TimeoutCreate).Minutes()))
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error creating folder '%s' in '%s': %s", displayName, parent, err)
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ func resourceGoogleFolderUpdate(d *schema.ResourceData, meta interface{}) error
|
|||
return err
|
||||
}
|
||||
|
||||
err = resourceManagerOperationWaitTime(config, opAsMap, "", "move folder", int(d.Timeout(schema.TimeoutCreate).Minutes()))
|
||||
err = resourceManagerOperationWaitTime(config, opAsMap, "move folder", int(d.Timeout(schema.TimeoutCreate).Minutes()))
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error moving folder '%s' to '%s': %s", displayName, newParent, err)
|
||||
}
|
||||
|
|
|
@ -232,7 +232,7 @@ func resourceGoogleProjectCreate(d *schema.ResourceData, meta interface{}) error
|
|||
return err
|
||||
}
|
||||
|
||||
waitErr := resourceManagerOperationWaitTime(config, opAsMap, "", "creating folder", int(d.Timeout(schema.TimeoutCreate).Minutes()))
|
||||
waitErr := resourceManagerOperationWaitTime(config, opAsMap, "creating folder", int(d.Timeout(schema.TimeoutCreate).Minutes()))
|
||||
if waitErr != nil {
|
||||
// The resource wasn't actually created
|
||||
d.SetId("")
|
||||
|
|
|
@ -31,7 +31,7 @@ func (w *ResourceManagerOperationWaiter) QueryOp() (interface{}, error) {
|
|||
return sendRequest(w.Config, "GET", url, nil)
|
||||
}
|
||||
|
||||
func resourceManagerOperationWaitTime(config *Config, op map[string]interface{}, project, activity string, timeoutMinutes int) error {
|
||||
func resourceManagerOperationWaitTime(config *Config, op map[string]interface{}, activity string, timeoutMinutes int) error {
|
||||
if val, ok := op["name"]; !ok || val == "" {
|
||||
// This was a synchronous call - there is no operation to wait for.
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user