File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
powershell-adapter/psDscAdapter Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function Write-DscTrace {
13
13
[string ]$Message
14
14
)
15
15
16
- $trace = @ {$Operation = $Message } | ConvertTo-Json - Compress
16
+ $trace = @ {$Operation.ToLower () = $Message } | ConvertTo-Json - Compress
17
17
$host.ui.WriteErrorLine ($trace )
18
18
}
19
19
@@ -412,7 +412,7 @@ function Invoke-DscOperation {
412
412
' PowerShell version: ' + $psVersion | Write-DscTrace
413
413
414
414
# get details from cache about the DSC resource, if it exists
415
- $cachedDscResourceInfo = $dscResourceCache | Where-Object Type -EQ $DesiredState.type | ForEach-Object DscResourceInfo
415
+ $cachedDscResourceInfo = $dscResourceCache | Where-Object Type -EQ $DesiredState.type | ForEach-Object DscResourceInfo | Select-Object - First 1
416
416
417
417
# if the resource is found in the cache, get the actual state
418
418
if ($cachedDscResourceInfo ) {
@@ -577,4 +577,4 @@ class DscResourceInfo {
577
577
[string ] $ImplementedAs
578
578
[string ] $CompanyName
579
579
[System.Collections.Generic.List [DscResourcePropertyInfo ]] $Properties
580
- }
580
+ }
You can’t perform that action at this time.
0 commit comments