From 33f11e71078f3d3b16061b47328031cede105036 Mon Sep 17 00:00:00 2001 From: David Murphy Date: Thu, 20 Jul 2023 09:38:58 -0600 Subject: [PATCH] Update salt/modules/yumpkg.py Co-authored-by: Pedro Algarvio --- salt/modules/yumpkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py index 9b52507d284..3ab033361c0 100644 --- a/salt/modules/yumpkg.py +++ b/salt/modules/yumpkg.py @@ -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"