From 17c1c7a0bb992c2f562a6d7aaa42e2b4d18a2fbf Mon Sep 17 00:00:00 2001 From: David Murphy Date: Tue, 4 Mar 2025 17:12:57 -0700 Subject: [PATCH] Corrected option --upgrades for dnf[5] for function list_upgrades --- 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 747503b57bb..83f5af2ff9b 100644 --- a/salt/modules/yumpkg.py +++ b/salt/modules/yumpkg.py @@ -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 {}