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
0cbee0f790
commit
0ab67261b2
1 changed files with 1 additions and 1 deletions
|
@ -2052,7 +2052,7 @@ def upgrade(
|
|||
cmd.append("upgrade" if not minimal else "upgrade-minimal")
|
||||
else:
|
||||
# do not force the removal of obsolete packages
|
||||
if _yum() == "dnf" or _yum() == "dnf5":
|
||||
if _yum() in ("dnf", "dnf5"):
|
||||
cmd.append("upgrade" if not minimal else "upgrade-minimal")
|
||||
else:
|
||||
# for yum we have to use update instead of upgrade
|
||||
|
|
Loading…
Add table
Reference in a new issue