Skip to content

Commit

Permalink
Merge pull request #157 from modular-magician/codegen-pr-951
Browse files Browse the repository at this point in the history
Add to state before we send the create call.
  • Loading branch information
nat-henderson authored Nov 27, 2018
2 parents a842599 + 94e0afb commit d5fcbaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion google-beta/resource_dataproc_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,9 @@ func resourceDataprocClusterCreate(d *schema.ResourceData, meta interface{}) err
waitErr := dataprocClusterOperationWait(config, op, "creating Dataproc cluster", timeoutInMinutes, 3)
if waitErr != nil {
// The resource didn't actually create
d.SetId("")
// Note that we do not remove the ID here - this resource tends to leave
// partially created clusters behind, so we'll let the next Read remove
// it.
return waitErr
}

Expand Down

0 comments on commit d5fcbaf

Please sign in to comment.