mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update salt/modules/yumpkg.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
This commit is contained in:
parent
da2897e9bf
commit
0cbee0f790
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue