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
BREAKING CHANGE: Add Scope option #11
Conversation
…aking Test-TargetResource returning false. Signed-off-by: Hans O. Martinsen
Signed-off-by: Hans O. Martinsen
Signed-off-by: Hans O. Martinsen
@kwirkykat how can I get someone to review this PR so it can be merged? |
@GerbenWelter This is a breaking change because it changes the default behavior of the resource without the Scope parameter. Before it would apparently retrieve the execution policy for the current session/user whereas now it will get the execution policy for the whole machine/all users. I think this is the correct design change to make though, so I will accept the breaking change. Can you please remove the DscResource.Tests common module from your branch? It should be in the .gitignore but apparently it isn't in this repo. |
I messed up by deleting my fork of this repo on GitHub. I made a new PR: #12. Closing this PR. |
* Added -Scope to the Resource to fix bugs with narrower scope always making Test-TargetResource returning false. Signed-off-by: Hans O. Martinsen * Fixed MOF file bug as well as updated Readme.md with unreleased feature. Signed-off-by: Hans O. Martinsen * Used ISE to edit MOF file, big mistake, reencoded to ASCII Signed-off-by: Hans O. Martinsen * Delete trailing whitespace and applied review comment by @BerheAbrha. * Remove DSCResource.Tests as asked by @kwirkykat * Add Scope option to xPowerShellExecutionPolicy section
This PR builds on the work (#9) of @HansOMartinsen (who seems to be MIA) and added the changes suggested by reviewer @BerheAbrha.
This fixes #8.
This change is