Skip to content

Commit

Permalink
bugfix: run d.Partial() to avoid setting invalid password to state wh…
Browse files Browse the repository at this point in the history
…en a user update fails
  • Loading branch information
manicminer committed May 15, 2024
1 parent 310ed13 commit b938fc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/services/users/user_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 579 in internal/services/users/user_resource.go

View workflow job for this annotation

GitHub Actions / tflint

R007: deprecated d.Partial(true)
return tf.ErrorDiagF(err, "Could not update user with ID: %q", d.Id())
}

Expand Down

0 comments on commit b938fc9

Please sign in to comment.