Skip to content
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

Closed
wants to merge 4 commits into from
Closed

BREAKING CHANGE: Add Scope option #11

wants to merge 4 commits into from

Conversation

GerbenWelter
Copy link
Contributor

@GerbenWelter GerbenWelter commented Sep 7, 2017

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 Reviewable

@dsccommunity dsccommunity deleted a comment from msftclas Sep 26, 2017
@dsccommunity dsccommunity deleted a comment from msftclas Sep 26, 2017
@GerbenWelter
Copy link
Contributor Author

@kwirkykat how can I get someone to review this PR so it can be merged?

@kwirkykat
Copy link
Contributor

@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.

@kwirkykat kwirkykat added the breaking change When used on an issue, the issue has been determined to be a breaking change. label Oct 21, 2017
@kwirkykat kwirkykat changed the title Add Scope option BREAKING CHANGE: Add Scope option Oct 21, 2017
@kwirkykat kwirkykat added the waiting for author response The pull request is waiting for the author to respond to comments in the pull request. label Oct 21, 2017
@GerbenWelter
Copy link
Contributor Author

I messed up by deleting my fork of this repo on GitHub. I made a new PR: #12. Closing this PR.

kwirkykat pushed a commit that referenced this pull request Dec 6, 2017
* 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
@SteveL-MSFT SteveL-MSFT added this to Waiting for author response in powershell/dscresources May 14, 2019
@SteveL-MSFT SteveL-MSFT removed this from Waiting for author response in powershell/dscresources Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change When used on an issue, the issue has been determined to be a breaking change. waiting for author response The pull request is waiting for the author to respond to comments in the pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xPowerShellExecutionPolicy: Test-TargetResource never returns true
4 participants