-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export multi methods #579
Export multi methods #579
Conversation
This reverts commit 9443e1c.
@SteveL-MSFT Hi Steve, I was actually a bit suprised my change broke the build. The reason is, after debugging and checking out the history on #556, I'm doubting if the change there was fully tested. If I add the following line in the if ($DesiredState.properties)
{
# set each property of $dscResourceInstance to the value of the property in the $desiredState INPUT object
$DesiredState.properties.psobject.properties | ForEach-Object -Process {
$dscResourceInstance.$($_.Name) = $_.Value
}
}
($dscResourceInstance | ConvertTo-Json -Depth 10 -Compress) | Write-DscTrace -Operation Trace I could see this: Clearly the properties are added to the output result set. That's why the tests are failing. Shouldn't these be filtered out? |
The diagnostic code is checking the wrong thing; 'filtering out' is done by constructing a new hashtable result object. Similarly for 'Export' operation - |
PR Summary
Address issue #578. Additional class can be added if needed to have only one export method.
PR Context