Skip to content

Commit 4897c96

Browse files
committed
feat(iam): store user status as string for tfproviderlint compatibility
1 parent 4f7cc1c commit 4897c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/services/iam/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func resourceIamUserRead(ctx context.Context, d *schema.ResourceData, m any) dia
188188
_ = d.Set("deletable", user.Deletable)
189189
_ = d.Set("last_login_at", types.FlattenTime(user.LastLoginAt))
190190
_ = d.Set("type", user.Type)
191-
_ = d.Set("status", user.Status) //nolint:staticcheck // user.Status is deprecated in SDK but kept for backward-compat in state
191+
_ = d.Set("status", user.Status.String()) //nolint:staticcheck // convert enum to string for schema compatibility
192192
_ = d.Set("mfa", user.Mfa)
193193
_ = d.Set("account_root_user_id", user.AccountRootUserID)
194194
_ = d.Set("locked", user.Locked)

0 commit comments

Comments
 (0)