salt icon indicating copy to clipboard operation
salt copied to clipboard

[master] Better handling output of `systemctl --version`

Open vzhestkov opened this issue 5 months ago • 0 comments

What does this PR do?

In some cases calling systemctl --version with salt.grains.core._systemd could return unexpected output what could cause IndexError exception preventing minion service from running.

What issues does this PR fix or reference?

Tracks https://github.com/SUSE/spacewalk/issues/25122

Previous Behavior

IndexError exception on starting minions service caused by unexpected response of systemctl --version

New Behavior

Normal minion start with just error message in the log about unexpected output.

Merge requirements satisfied?

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

  • [ ] Docs
  • [ ] Changelog - https://docs.saltproject.io/en/master/topics/development/changelog.html
  • [ ] Tests written/updated

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices, including the PR Guidelines.

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

vzhestkov avatar Aug 28 '24 13:08 vzhestkov