Skip to content

Commit

Permalink
Add default value to Ensure
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmestre committed Jan 23, 2024
1 parent ba456e0 commit 0e997ca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Get-TargetResource
[Parameter()]
[ValidateSet('Present', 'Absent')]
[System.String]
$Ensure,
$Ensure = 'Present',

[Parameter()]
[System.Management.Automation.PSCredential]
Expand Down Expand Up @@ -146,7 +146,7 @@ function Set-TargetResource
[Parameter()]
[ValidateSet('Present', 'Absent')]
[System.String]
$Ensure,
$Ensure = 'Present',

[Parameter()]
[System.Management.Automation.PSCredential]
Expand Down Expand Up @@ -274,7 +274,7 @@ function Test-TargetResource
[Parameter()]
[ValidateSet('Present', 'Absent')]
[System.String]
$Ensure,
$Ensure = 'Present',

[Parameter()]
[System.Management.Automation.PSCredential]
Expand Down

0 comments on commit 0e997ca

Please sign in to comment.