From 5b5a837b70943a214a66e1f0860909187a6848f6 Mon Sep 17 00:00:00 2001 From: Emily Ye Date: Thu, 6 Sep 2018 20:32:29 -0700 Subject: [PATCH] fix update --- google/resource_composer_environment.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/google/resource_composer_environment.go b/google/resource_composer_environment.go index cff3ce2f720..f4e6723d4b9 100644 --- a/google/resource_composer_environment.go +++ b/google/resource_composer_environment.go @@ -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 {