Skip to content

Commit 5af38f6

Browse files
author
Andrew
committed
update 5
1 parent eb73629 commit 5af38f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

powershell-adapter/psDscAdapter/psDscAdapter.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ function Invoke-DscOperation {
473473
'Get' {
474474
$Result = @{}
475475
$raw_obj = $dscResourceInstance.Get()
476-
$ValidProperties | %{ $Result[$_] = $raw_obj.$_ }
476+
$ValidProperties | ForEach-Object { $Result[$_] = $raw_obj.$_ }
477477
$addToActualState.properties = $Result
478478
}
479479
'Set' {
@@ -482,7 +482,7 @@ function Invoke-DscOperation {
482482
'Test' {
483483
$Result = @{}
484484
$raw_obj = $dscResourceInstance.Test()
485-
$ValidProperties | %{ $Result[$_] = $raw_obj.$_ }
485+
$ValidProperties | ForEach-Object { $Result[$_] = $raw_obj.$_ }
486486
$addToActualState.properties = [psobject]@{'InDesiredState'=$Result}
487487
}
488488
'Export' {
@@ -496,7 +496,7 @@ function Invoke-DscOperation {
496496
$raw_obj_array = $method.Invoke($null,$null)
497497
foreach ($raw_obj in $raw_obj_array) {
498498
$Result_obj = @{}
499-
$ValidProperties | %{ $Result_obj[$_] = $raw_obj.$_ }
499+
$ValidProperties | ForEach-Object { $Result_obj[$_] = $raw_obj.$_ }
500500
$resultArray += $Result_obj
501501
}
502502
$addToActualState = $resultArray

0 commit comments

Comments
 (0)