Update salt/modules/yumpkg.py

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
This commit is contained in:
David Murphy 2023-07-20 09:38:58 -06:00 committed by Megan Wilhite
parent 27844363dd
commit 33f11e7107

View file

@ -251,7 +251,7 @@ def _versionlock_pkg(grains=None):
if grains is None:
grains = __grains__
if _yum() == "dnf" or _yum() == "dnf5":
if _yum() in ("dnf", "dnf5"):
if grains["os"].lower() == "fedora":
return (
"python3-dnf-plugin-versionlock"