[FEATURE REQUEST] win_pkg.py print debug logging of full command being run #62480
Labels
Execution-Module
Feature
new functionality including changes to functionality and code refactors, etc.
Sulfur v3006.0
release code name and version
Windows
Milestone
Is your feature request related to a problem? Please describe.
When working with Windows software installers using winrepo it would be a great timesaver to know exactly what command Salt is running.
Currently the only information given is:
[INFO ] Executing command '"C:\Windows\system32\cmd.exe"' in directory 'C:\ProgramData\Salt Project\Salt\var\ca lt\minion\extrn_files\base\the.earth.li\~sgtatham\putty\0.77\w64'
which is useless for the purpose of developing a new winrepo package definition.
Describe the solution you'd like
I would like a log message such as:
[DEBUG] Executing '"msiexec" /I "C:\\ProgramData\\Salt Project\\Salt\\var\\cache\\salt\\minion\\extrn_files\\base\\the.earth.li\\~sg \\putty\\0.77\\w64\\putty-64bit-0.77-installer.msi" ALLUSERS=1 /qn'
Describe alternatives you've considered
An alternative is to break out the debugger to check on the
cmd_shell
andarguments
variables at the point the command is run. The requested debug logging would save a lot of time.I have looked at the options available in
cmd.run_all
and it doesn't look like an option exists to log the full cmd and arguments prior to running.Additional context
Add any other context or screenshots about the feature request here.
FAO @twangboy
Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.
The text was updated successfully, but these errors were encountered: