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: New Scope property breaks DSC Resource #14
Comments
#9 is also impacted by this. |
This commit pins xPowerShellExecutionPolicy because of dsccommunity/xPowerShellExecutionPolicy#14
I was able to verify this was broken as well. ScopeLevel seems reasonable to me. /cc @kwirkykat |
I know I'm late to the party but I just hit this bug. Recommend "PolicyScope" or "ExecutionPolicyScope" as the parameter name. May be more intuitive than ScopeLevel. |
@MattAllison Never to late to come with suggestions! @TraGicCode is working on this in PR #15. @TraGicCode what is you opinion about @MattAllison's proposal? |
I'm okay with the recommendation. No problem on my end with changing this. I'm in favor of long names so i shall pick ExecutionPolicyScope :). Sound good @MattAllison ? |
@TraGicCode we are three in favor of 'ExecutionPolicyScope' so I propose we go with that. 😃 |
I'm good with the verbose parameter name. Thank you! |
I will work on this now. |
- BREAKING CHANGE: Renamed the 'Scope' Parameter to 'ExecutionPolicyScope' since errors are thrown when the MOF file is parsed because 'Scope' is a reserved keyword in the DMTF Specification (issue #14).
Commit cacd235 added the
Scope
property to the xPowerShellExecutionPolicy DSC Resource, however according to the DMTF specification (page 37)Scope
is a reserved keyword, and results in this DSC Resource being unusable. This change also prevents us from including this release in the Puppet dsc module. I replicated this on PowerShell 5.1 on a fresh machine, with aInstall-Module -Name xPowerShellExecutionPolicy
using the PowerShellGallery feed, which pulls down version 2.0.0.0.Attempting to use the DSC Resource results in a failure to find it:
This is because it fails parsing with the syntax error from usage of the word
scope
:The fix would be to choose a different name for the
Scope
property, something likeScopeLevel
orExecutionPolicyScope
. I can put up a PR to fix that, but wanted to ask first what name to use.The text was updated successfully, but these errors were encountered: