Skip to content

Commit

Permalink
Fix state password and string state upgraders to populate min_upper (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Aug 31, 2022
1 parent fae7ea6 commit bf78390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/provider/resource_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func upgradePasswordStateV0toV2(ctx context.Context, req resource.UpgradeStateRe
Number: passwordDataV0.Number,
Numeric: passwordDataV0.Number,
MinNumeric: passwordDataV0.MinNumeric,
MinUpper: passwordDataV0.MinUpper,
MinLower: passwordDataV0.MinLower,
MinSpecial: passwordDataV0.MinSpecial,
OverrideSpecial: passwordDataV0.OverrideSpecial,
Expand Down Expand Up @@ -246,6 +247,7 @@ func upgradePasswordStateV1toV2(ctx context.Context, req resource.UpgradeStateRe
Number: passwordDataV1.Number,
Numeric: passwordDataV1.Number,
MinNumeric: passwordDataV1.MinNumeric,
MinUpper: passwordDataV1.MinUpper,
MinLower: passwordDataV1.MinLower,
MinSpecial: passwordDataV1.MinSpecial,
OverrideSpecial: passwordDataV1.OverrideSpecial,
Expand Down
1 change: 1 addition & 0 deletions internal/provider/resource_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ func upgradeStringStateV1toV2(ctx context.Context, req resource.UpgradeStateRequ
Number: stringDataV1.Number,
Numeric: stringDataV1.Number,
MinNumeric: stringDataV1.MinNumeric,
MinUpper: stringDataV1.MinUpper,
MinLower: stringDataV1.MinLower,
MinSpecial: stringDataV1.MinSpecial,
OverrideSpecial: stringDataV1.OverrideSpecial,
Expand Down

0 comments on commit bf78390

Please sign in to comment.