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

In mocked WhatIf support, the action and target are reversed #14

Closed
briantist opened this issue Jul 9, 2017 · 1 comment
Closed

In mocked WhatIf support, the action and target are reversed #14

briantist opened this issue Jul 9, 2017 · 1 comment
Assignees
Labels

Comments

@briantist
Copy link
Owner

briantist commented Jul 9, 2017

What if: Performing the operation "File DSC Resource" on target "Set".
This comes from the following line in the template functions:

if (`$PSCmdlet.ShouldProcess('${Verb}', '${Resource} DSC Resource')) {

(the parameters to $PSCmdlet.ShouldProcess are target and action respectively, so the values should be reversed)

@briantist briantist added the bug label Jul 9, 2017
@briantist briantist self-assigned this Jul 9, 2017
@briantist briantist mentioned this issue Jul 9, 2017
@briantist
Copy link
Owner Author

Fixed in #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant