Skip to content

Commit

Permalink
fix update
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye committed Sep 7, 2018
1 parent 2b1340c commit 5b5a837
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions google/resource_composer_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,14 +460,12 @@ func resourceComposerEnvironmentPatchField(updateMask string, env *composer.Envi
config.clientComposer, op, envName.Project, "Updating newly created Environment",
int(d.Timeout(schema.TimeoutCreate).Minutes()))
if waitErr != nil {
// The resource didn't actually create
d.SetId("")
// The resource didn't actually update.
return fmt.Errorf("Error waiting to update Environment: %s", waitErr)
}

log.Printf("[DEBUG] Finished updating Environment %q (updateMask = %q)", d.Id(), updateMask)

return resourceComposerEnvironmentRead(d, config)
return nil
}

func resourceComposerEnvironmentDelete(d *schema.ResourceData, meta interface{}) error {
Expand Down

0 comments on commit 5b5a837

Please sign in to comment.