Skip to content

Commit 689dff2

Browse files
modular-magicianKristof Havasi
and
Kristof Havasi
authored
fix: cloud funcions gen2 enable taint on creation failure (#8545) (#15418)
Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Kristof Havasi <[email protected]>
1 parent 0f45370 commit 689dff2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.changelog/8545.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
cloudfunctions2: fixed creation failure TF state inconsistency in `google_cloudfunctions2_function`
3+
```

google/services/cloudfunctions2/resource_cloudfunctions2_function.go

-3
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,6 @@ func resourceCloudfunctions2functionCreate(d *schema.ResourceData, meta interfac
607607
config, res, &opRes, project, "Creating function", userAgent,
608608
d.Timeout(schema.TimeoutCreate))
609609
if err != nil {
610-
// The resource didn't actually create
611-
d.SetId("")
612-
613610
return fmt.Errorf("Error waiting to create function: %s", err)
614611
}
615612

0 commit comments

Comments
 (0)