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

Fix systemd_service.* functions hard code relative command name #62943

Merged

Conversation

nicholasmhughes
Copy link
Collaborator

What does this PR do?

See issue for details

What issues does this PR fix or reference?

Fixes: #62942

Previous Behavior

systemctl, runlevel, and other commands in the module would not be found if the PATH environment variable was not set properly.

New Behavior

Now an effort is made to find the command using the which util

Merge requirements satisfied?

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

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@nicholasmhughes nicholasmhughes requested a review from a team as a code owner October 24, 2022 14:48
@nicholasmhughes nicholasmhughes requested review from waynew and removed request for a team October 24, 2022 14:48
@nicholasmhughes nicholasmhughes added the Sulfur v3006.0 release code name and version label Oct 24, 2022
@garethgreenaway garethgreenaway merged commit c20115c into saltstack:master Oct 24, 2022
@nicholasmhughes nicholasmhughes deleted the fix-systemd-service-path branch October 25, 2022 22:10
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.

[BUG] systemd_service.* functions hard code relative command name
3 participants