Correct typo

This commit is contained in:
David Murphy 2025-03-03 14:26:36 -07:00 committed by Daniel Wozniak
parent 002d02a5e7
commit b01ae2ce28

View file

@ -3541,7 +3541,7 @@ def services_need_restart(**kwargs):
salt '*' pkg.services_need_restart
"""
if _yum() in ("dnf", "dnf5"):
if _yum() not in ("dnf", "dnf5"):
raise CommandExecutionError(
"dnf or dnf5 is required to list outdated services."
)