-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Windows: state pkg.installed ignores extra_install_flags #50041
Comments
Please try |
Yes, that works.
|
So the bug is in states/pkg.py |
Sorry just remember you can not call kwargs in a simple way for a state. Important bit in yaml
|
yeah i dont see how that command wouldn't work, as the state pkg module just passes **kwargs. |
Still not working.
|
I put the blame here: Lines 1524 to 1532 in 29a4d48
and here: Lines 1183 to 1192 in 2301443
|
this :
should be this:
as @damon-atkins pointed out above. note removing that extra |
Ok, I should have said I tried various different constructions of I've pointed out the bug above, which is the test in line 1183 of win_pkg.py. |
ahh thanks for pointing that out again @dafyddj ping @saltstack/team-windows anyone want to tackle this one? |
I've just hit this issue again, and I can't spot a work-around. I'm using 2018.3.4 (py3) on Server 2016 |
I had meant to come back to this. I patched my win_pkg.py from 2018.3.4 with the following to resolve the issue:
|
I have been able to replicate the problem and will now start working on a proper solution. |
Description of Issue/Question
When using the state
pkg.installed
the argumentextra_install_flags
is ignored.AFAICT, the issue was introduced in 2016.11.8 and exists in all later versions (but worked as expected in 2016.11.7).
Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
The command executed is seen below, and doesn't contain the extra flag specified above:
As a result, the Windows File Explorer right-button context menu contains Git related entries which shouldn't be there.
Versions Report
The text was updated successfully, but these errors were encountered: