mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
provider/google: Unset the id for resource_google_project if the create operation fails (#13644)
This commit is contained in:
parent
aa913e6dee
commit
8653677e70
@ -105,6 +105,8 @@ func resourceGoogleProjectCreate(d *schema.ResourceData, meta interface{}) error
|
||||
// Wait for the operation to complete
|
||||
waitErr := resourceManagerOperationWait(config, op, "project to create")
|
||||
if waitErr != nil {
|
||||
// The resource wasn't actually created
|
||||
d.SetId("")
|
||||
return waitErr
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user