Skip to content
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

Add debug message displaying actual installation command #63078

Merged
merged 4 commits into from
Nov 22, 2022

Conversation

twangboy
Copy link
Contributor

@twangboy twangboy commented Nov 17, 2022

What does this PR do?

Adds a debug message to display the actual command that is being run when installing packages using the Windows package manager.

What issues does this PR fix or reference?

Fixes: #62480

Previous Behavior

I was only displaying the message from the cmd.run command which only showed the binary being run without the arguments that were passed.

New Behavior

Displays a debug message similar this:

[DEBUG ] PKG : cmd: C:\\WINDOWS\\system32\\cmd.exe /s /c "runme.exe" /s -e True -test True

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy twangboy requested a review from a team as a code owner November 17, 2022 15:53
@twangboy twangboy requested review from Ch3LL and removed request for a team November 17, 2022 15:53
@twangboy twangboy added the Sulfur v3006.0 release code name and version label Nov 17, 2022
@twangboy twangboy added this to the Sulphur v3006.0 milestone Nov 17, 2022
Copy link
Contributor

@Ch3LL Ch3LL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small question

salt/modules/win_pkg.py Show resolved Hide resolved
@Ch3LL Ch3LL merged commit 7d2b72b into saltstack:master Nov 22, 2022
@twangboy twangboy deleted the pkg_show_cmd branch March 23, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sulfur v3006.0 release code name and version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] win_pkg.py print debug logging of full command being run
2 participants