mirror of
https://github.com/saltstack/salt.git
synced 2025-04-14 08:40:20 +00:00
Corrected option --upgrades for dnf[5] for function list_upgrades
This commit is contained in:
parent
3a852d18f6
commit
17c1c7a0bb
1 changed files with 1 additions and 1 deletions
|
@ -1036,7 +1036,7 @@ def list_upgrades(refresh=True, **kwargs):
|
|||
|
||||
cmd = ["--quiet"]
|
||||
cmd.extend(options)
|
||||
cmd.extend(["list", "upgrades" if _yum() in ("dnf", "dnf5") else "updates"])
|
||||
cmd.extend(["list", "--upgrades" if _yum() in ("dnf", "dnf5") else "updates"])
|
||||
out = _call_yum(cmd, ignore_retcode=True)
|
||||
if out["retcode"] != 0 and "Error:" in out:
|
||||
return {}
|
||||
|
|
Loading…
Add table
Reference in a new issue