From dd769b0b5d87662852661aaeadd9444a6d197dd3 Mon Sep 17 00:00:00 2001 From: Uwe Werler Date: Fri, 4 Sep 2026 16:38:31 +0200 Subject: [PATCH] fix for #70235 --- salt/modules/yumpkg.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py index 177decff768e..41864cc29557 100644 --- a/salt/modules/yumpkg.py +++ b/salt/modules/yumpkg.py @@ -1033,13 +1033,17 @@ def list_upgrades(refresh=True, **kwargs): .. versionadded:: 2014.7.0 Support for the ``disableexcludes`` option + .. note:: + To add extra arguments to the ``yum list upgrades`` command, pass them as key + word arguments. For arguments without assignments, pass ``True`` + CLI Example: .. code-block:: bash - salt '*' pkg.list_upgrades + salt '*' pkg.list_upgrades security=True exclude='kernel*' """ - options = _get_options(**kwargs) + options = _get_options(get_extra_options=True, **kwargs) if salt.utils.data.is_true(refresh): refresh_db(check_update=False, **kwargs)