Skip to content

Commit f40baad

Browse files
fixed issue where a failed creation on container_node_pool would result in an unrecoverable tainted state (#14937) (#24077)
[upstream:4efcbb9201946c26b761b2f8ddf0da98ddb10aab] Signed-off-by: Modular Magician <[email protected]>
1 parent 4c336e3 commit f40baad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.changelog/14937.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
container: fixed issue where a failed creation on `google_container_node_pool` would result in an unrecoverable tainted state
3+
```

google/services/container/resource_container_node_pool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ func resourceContainerNodePoolCreate(d *schema.ResourceData, meta interface{}) e
638638
return nil
639639
})
640640
if err != nil {
641+
d.SetId("")
641642
return fmt.Errorf("error creating NodePool: %s", err)
642643
}
643644
timeout -= time.Since(startTime)

0 commit comments

Comments
 (0)