Skip to content

Commit

Permalink
Fix number range validation
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienTschanz committed Sep 13, 2023
1 parent add454b commit 039d201
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Get-TargetResource

[Parameter()]
[System.Int32]
[ValidateSet(0, 1, 2)]
[ValidateRange(0, 2)]
$BackupDirectory,

[Parameter()]
Expand Down Expand Up @@ -54,7 +54,7 @@ function Get-TargetResource

[Parameter()]
[System.Int32]
[ValidateSet(1, 2, 3, 4)]
[ValidateRange(1, 4)]
$PasswordComplexity,

[Parameter()]
Expand Down Expand Up @@ -272,7 +272,7 @@ function Set-TargetResource

[Parameter()]
[System.Int32]
[ValidateSet(0, 1, 2)]
[ValidateRange(0, 2)]
$BackupDirectory,

[Parameter()]
Expand Down Expand Up @@ -308,7 +308,7 @@ function Set-TargetResource

[Parameter()]
[System.Int32]
[ValidateSet(1, 2, 3, 4)]
[ValidateRange(1, 4)]
$PasswordComplexity,

[Parameter()]
Expand Down Expand Up @@ -460,7 +460,7 @@ function Test-TargetResource

[Parameter()]
[System.Int32]
[ValidateSet(0, 1, 2)]
[ValidateRange(0, 2)]
$BackupDirectory,

[Parameter()]
Expand Down Expand Up @@ -496,7 +496,7 @@ function Test-TargetResource

[Parameter()]
[System.Int32]
[ValidateSet(1, 2, 3, 4)]
[ValidateRange(1, 4)]
$PasswordComplexity,

[Parameter()]
Expand Down

0 comments on commit 039d201

Please sign in to comment.