Update salt/modules/yumpkg.py

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
This commit is contained in:
David Murphy 2023-07-20 09:39:23 -06:00 committed by Megan Wilhite
parent da2897e9bf
commit 0cbee0f790

View file

@ -2014,7 +2014,7 @@ def upgrade(
salt '*' pkg.upgrade security=True exclude='kernel*'
"""
if (_yum() == "dnf" or _yum() == "dnf5") and not obsoletes:
if _yum() in ("dnf", "dnf5") and not obsoletes:
# for dnf we can just disable obsoletes
_setopt = [
opt