Skip to content

Commit d5fcbaf

Browse files
Merge pull request hashicorp#157 from modular-magician/codegen-pr-951
Add to state before we send the create call.
2 parents a842599 + 94e0afb commit d5fcbaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

google-beta/resource_dataproc_cluster.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,9 @@ func resourceDataprocClusterCreate(d *schema.ResourceData, meta interface{}) err
442442
waitErr := dataprocClusterOperationWait(config, op, "creating Dataproc cluster", timeoutInMinutes, 3)
443443
if waitErr != nil {
444444
// The resource didn't actually create
445-
d.SetId("")
445+
// Note that we do not remove the ID here - this resource tends to leave
446+
// partially created clusters behind, so we'll let the next Read remove
447+
// it.
446448
return waitErr
447449
}
448450

0 commit comments

Comments
 (0)