You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The _yum() function in salt/modules/yumpkg.py returns dnf5.
However, the check in services_need_restart() only accounts for dnf, despite the command working fine in DNF 5 (dnf5), and needlessly fails:
# sha512sum `which dnf` ; sha512sum `which dnf5`
8ff23f3049841d00dab2861710717bc56a841f2754c469edffad2cd52c8219a75a6bec120cc7d5ce7762f7c407a87ccccdc1e80bc93dc97150d507feba0e942c /usr/bin/dnf
8ff23f3049841d00dab2861710717bc56a841f2754c469edffad2cd52c8219a75a6bec120cc7d5ce7762f7c407a87ccccdc1e80bc93dc97150d507feba0e942c /usr/bin/dnf5
# dnf --quiet needs-restarting
No core libraries or services have been updated since boot-up.
Reboot should not be necessary.
# dnf5 --quiet needs-restarting
No core libraries or services have been updated since boot-up.
Reboot should not be necessary.
Setup
Fedora 41 running Salt Minion 3007.1.
on-prem machine
VM (Virtualbox, KVM, etc. please specify)
VM running on a cloud service, please be explicit and add details
container (Kubernetes, Docker, containerd, etc. please specify)
or a combination, please be explicit
jails if it is FreeBSD
classic packaging
onedir packaging
used bootstrap to install
Steps to Reproduce the behavior
N/A
Expected behavior
yumpkg properly detects dnf5 with the same consideration and condition path as dnf in services_need_restart() instead of raising CommandExecutionError("dnf is required to list outdated services.").
Screenshots
N/A
Versions Report
N/A; see above.
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Description
Fedora 41 uses DNF5.
The
_yum()
function in salt/modules/yumpkg.py returnsdnf5
.However, the check in
services_need_restart()
only accounts fordnf
, despite the command working fine in DNF 5 (dnf5
), and needlessly fails:Setup
Fedora 41 running Salt Minion 3007.1.
Steps to Reproduce the behavior
N/A
Expected behavior
yumpkg properly detects dnf5 with the same consideration and condition path as dnf in
services_need_restart()
instead of raisingCommandExecutionError("dnf is required to list outdated services.")
.Screenshots
N/A
Versions Report
N/A; see above.
Additional context
N/A
The text was updated successfully, but these errors were encountered: