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 @@ -473,7 +473,7 @@ function Invoke-DscOperation {
473
473
' Get' {
474
474
$Result = @ {}
475
475
$raw_obj = $dscResourceInstance.Get ()
476
- $ValidProperties | % { $Result [$_ ] = $raw_obj [ $_ ] }
476
+ $ValidProperties | % { $Result [$_ ] = $raw_obj . $_ }
477
477
$addToActualState.properties = $Result
478
478
}
479
479
' Set' {
@@ -482,7 +482,7 @@ function Invoke-DscOperation {
482
482
' Test' {
483
483
$Result = @ {}
484
484
$raw_obj = $dscResourceInstance.Test ()
485
- $ValidProperties | % { $Result [$_ ] = $raw_obj [ $_ ] }
485
+ $ValidProperties | % { $Result [$_ ] = $raw_obj . $_ }
486
486
$addToActualState.properties = [psobject ]@ {' InDesiredState' = $Result }
487
487
}
488
488
' Export' {
@@ -496,7 +496,7 @@ function Invoke-DscOperation {
496
496
$raw_obj_array = $method.Invoke ($null , $null )
497
497
foreach ($raw_obj in $raw_obj_array ) {
498
498
$Result_obj = @ {}
499
- $ValidProperties | % { $Result_obj [$_ ] = $raw_obj [ $_ ] }
499
+ $ValidProperties | % { $Result_obj [$_ ] = $raw_obj . $_ }
500
500
$resultArray += $Result_obj
501
501
}
502
502
$addToActualState = $resultArray
You can’t perform that action at this time.
0 commit comments