You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DSCResources/CommonResourceHelper.psm1
+90-2Lines changed: 90 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ function Test-DscParameterState
211
211
212
212
if ($desiredType.IsArray)
213
213
{
214
-
Write-Verbose"Comparing values in property '$key'"
214
+
Write-Verbose-Message "Comparing values in property '$key'"
215
215
if (-not$CurrentValues.ContainsKey($key) -or-not$CurrentValues.$key)
216
216
{
217
217
Write-Verbose-Message "NOTMATCH: Value (type $($desiredType.Name)) for property '$key' does not match. Current state is '$($CurrentValues.$key)' and desired state is '$($desiredValuesClean.$key)'"
@@ -290,7 +290,7 @@ function Test-DscParameterState
290
290
}
291
291
}
292
292
293
-
Write-Verbose"Result is '$returnValue'"
293
+
Write-Verbose-Message "Result is '$returnValue'"
294
294
return$returnValue
295
295
}
296
296
@@ -325,9 +325,97 @@ function Test-DSCObjectHasProperty
325
325
return$false
326
326
}
327
327
328
+
<#
329
+
.SYNOPSIS
330
+
Creates and throws an invalid argument exception
331
+
332
+
.PARAMETERMessage
333
+
The message explaining why this error is being thrown
334
+
335
+
.PARAMETERArgumentName
336
+
The name of the invalid argument that is causing this error to be thrown
0 commit comments