Skip to content

Commit

Permalink
fix: cloud funcions gen2 enable taint on creation failure (#8545)
Browse files Browse the repository at this point in the history
Co-authored-by: Kristof Havasi <kristof.havasi@nearform.com>
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician and Kristof Havasi committed Aug 7, 2023
1 parent 0f45370 commit b7400c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/8545.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cloudfunctions2: fixed creation failure TF state inconsistency in `google_cloudfunctions2_function`
```
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,6 @@ func resourceCloudfunctions2functionCreate(d *schema.ResourceData, meta interfac
config, res, &opRes, project, "Creating function", userAgent,
d.Timeout(schema.TimeoutCreate))
if err != nil {
// The resource didn't actually create
d.SetId("")

return fmt.Errorf("Error waiting to create function: %s", err)
}

Expand Down

0 comments on commit b7400c6

Please sign in to comment.