Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions salt/modules/yumpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading