Repository navigation
Add pre_versions to chocolatey.installed - #37762
Merged
Merged
Conversation
cachedout
reviewed
Nov 18, 2016
| override_args, | ||
| force_x86, | ||
| package_args)} | ||
| ret['changes'] = {name: __salt__['chocolatey.install']( |
Contributor
There was a problem hiding this comment.
This is a very tight coupling between the ordering of the keyword arguments in the execution module and the ordering here. It would be better to use the keywords themselves instead of relying on the ordering.
Contributor
Author
There was a problem hiding this comment.
Maybe that would have avoided the problem in the first place.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds
pre_versionargument to thechocolatey.installedstate. It looks like this was an oversight.What issues does this PR fix or reference?
https://github.com/saltstack/zh/issues/1061
Previous Behavior
This parameter was not available. Additionally, the call to
chocolatey.installused positional arguments and didn't account for thepre_versionsparameter betweenforceandinstall_args, so thechocolatey.installparamaters were being shifted down one after force,pre_versionswas gettinginstall_args,install_argswas gettingoverride_args, etc.New Behavior
Parameter now available. Arguments line up correctly.
Tests written?
No