[BUG] win_wua.uninstall fails on Python 3 minon #58071
Labels
Bug
broken, incorrect, or confusing behavior
python3
regarding Python 3 support
severity-low
4th level, cosemtic problems, work around exists
Milestone
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
Get a valid patch number by listing installed patches.
salt-call --local win_wua.list skip_installed=false
Run the following command, replacing the UUID with a valid one form step Enable regex on the salt cli #1.
salt-call --local win_wua.uninstall c01629fc-64ea-45f3-b7cb-cabc7d566933 -l debug
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.
The text was updated successfully, but these errors were encountered: