Skip to content

Commit

Permalink
make must_change_password attribute immutable after creation (#1422)
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Greggi <[email protected]>
  • Loading branch information
alegrey91 authored Oct 18, 2024
1 parent 06e5303 commit a37b808
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rancher2/schema_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func userFields() map[string]*schema.Schema {
},
"must_change_password": {
Type: schema.TypeBool,
ForceNew: true, // This makes the attribute immutable after creation
Optional: true,
Default: false,
},
Expand Down

0 comments on commit a37b808

Please sign in to comment.