We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f547da commit 242a1a0Copy full SHA for 242a1a0
powershell-adapter/psDscAdapter/psDscAdapter.psm1
@@ -484,11 +484,12 @@ function Invoke-DscOperation {
484
$addToActualState.properties = [psobject]@{'InDesiredState'=$Result}
485
}
486
'Export' {
487
+ $t = $dscResourceInstance.GetType()
488
$methods = $t.GetMethods() | Where-Object { $_.Name -eq 'Export' }
- $method = foreach ($m in $methods) {
489
- if ($m.GetParameters().Count -eq 0) {
490
- $m
491
- break
+ $method = foreach ($mt in $methods) {
+ if ($mt.GetParameters().Count -eq 0) {
+ $mt
492
+ break
493
494
495
0 commit comments