Open amendlik opened 4 years ago
@amendlik thanks for the bug report. Looks like @twangboy took the job.
~+1 func does not take kwargs.. only list and that also does not work with more than 1 value~
need to execute with right quoting
docker exec -it salt-master salt 'ws02' win_wua.uninstall "['KB4023057','KB4052623']"
Description Running the following command produces different results on v3000.3 depending on whether Python 2 or 3 is used. This problem is also present in v3001.
Salt-Minion-3000.3-Py2-AMD64-Setup - works fine Salt-Minion-3000.3-Py3-AMD64-Setup - fails with error:
Passed invalid arguments: a bytes-like object is required, not 'str'.
Command:
salt-call --local win_wua.uninstall c01629fc-64ea-45f3-b7cb-cabc7d566933 -l debug
Output:
Setup Install Salt-Minion-3000.3-Py3-AMD64-Setup
Steps to Reproduce the behavior 1) Get a valid patch number by listing installed patches.
salt-call --local win_wua.list skip_installed=false
2) Run the following command, replacing the UUID with a valid one form step #1.
salt-call --local win_wua.uninstall c01629fc-64ea-45f3-b7cb-cabc7d566933 -l debug
3) There is a note in
salt.utils.win_update.WindowsUpdateAgent.uninstall()
that could affect how this issue is reproduced:The code that is failing is in the error handler that is executed only if Windows Update Agent fails. I'm not sure what triggers that, but you will only see this error if you make it to the code that executes
dism.exe
after WUA fails.Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Versions Report
Additional context Add any other context about the problem here.