From b938fc9efe0d531b414fd7d2800da1f1f42a4d33 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Wed, 15 May 2024 23:56:28 +0100 Subject: [PATCH] bugfix: run d.Partial() to avoid setting invalid password to state when a user update fails --- internal/services/users/user_resource.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/services/users/user_resource.go b/internal/services/users/user_resource.go index 02df5f2ea..2bdb43bc9 100644 --- a/internal/services/users/user_resource.go +++ b/internal/services/users/user_resource.go @@ -576,6 +576,7 @@ func userResourceUpdate(ctx context.Context, d *pluginsdk.ResourceData, meta int } if _, err := client.Update(ctx, properties); err != nil { + d.Partial(true) return tf.ErrorDiagF(err, "Could not update user with ID: %q", d.Id()) }