Skip to content

Commit

Permalink
Corrected HQRM issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Mar 17, 2020
1 parent 62fc5f3 commit 9fff701
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function Add-SPDscEvent
{
[CmdletBinding()]
param(
param
(
[Parameter(Mandatory = $true)]
[System.String]
$Message,
Expand Down Expand Up @@ -917,7 +918,7 @@ function Test-SPDscParameterState

$returnValue = $true

$DriftedParameters = @{}
$DriftedParameters = @{ }

if (($DesiredValues.GetType().Name -ne "HashTable") -and `
($DesiredValues.GetType().Name -ne "CimInstance") -and `
Expand Down Expand Up @@ -1015,7 +1016,7 @@ function Test-SPDscParameterState
$arrayCompare = Compare-Object -ReferenceObject $CurrentValues.$fieldName `
-DifferenceObject $DesiredValues.$fieldName
if ($null -ne $arrayCompare -and `
-not [System.String]::IsNullOrEmpty($arrayCompare.InputObject))
-not [System.String]::IsNullOrEmpty($arrayCompare.InputObject))
{
Write-Verbose -Message ("Found an array for property $fieldName " + `
"in the current values, but this array " + `
Expand Down Expand Up @@ -1173,7 +1174,7 @@ function Test-SPDscParameterState
$AllCurrentValuesAsArray += [PSCustomObject]$currentEntry
}
$arrayCompare = Compare-PSCustomObjectArrays -CurrentValues $AllCurrentValuesAsArray `
-DesiredValues $AllCurrentValuesAsArray
-DesiredValues $AllCurrentValuesAsArray
if ($null -ne $arrayCompare)
{
foreach ($item in $arrayCompare)
Expand Down

0 comments on commit 9fff701

Please sign in to comment.