This repository was archived by the owner on Jun 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Suppress Global Vars PSSA Error because $global:DSCMachineStatus must be allowed
22[Diagnostics.CodeAnalysis.SuppressMessageAttribute (' PSAvoidGlobalVars' , ' ' )]
33[Diagnostics.CodeAnalysis.SuppressMessageAttribute (' PSUseShouldProcessForStateChangingFunctions' , ' ' )]
4- param ()
4+
5+ param ()
56
67$errorActionPreference = ' Stop'
78Set-StrictMode - Version ' Latest'
Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ function Get-TargetResourceOnFullSKU
353353#>
354354function Set-TargetResourceOnFullSKU
355355{
356+ [Diagnostics.CodeAnalysis.SuppressMessageAttribute (' PSShouldProcess' , ' ' )]
356357 [CmdletBinding (SupportsShouldProcess = $true )]
357358 param
358359 (
@@ -1125,7 +1126,7 @@ function Test-TargetResourceOnNanoServer
11251126
11261127 if ($PSBoundParameters.ContainsKey (' Password' ))
11271128 {
1128- if (-not (Test-CredentialsValidOnNanoServer - UserName $UserName - Password $Password.Password ))
1129+ if (-not (Test-CredentialsValidOnNanoServer - UserName $UserName - Password $Password.Password ))
11291130 {
11301131 # The Password property does not match
11311132 Write-Verbose - Message ($script :localizedData.PasswordPropertyMismatch -f ' Password' )
You can’t perform that action at this time.
0 commit comments