Add 'all_versions' documentation for info_installed on yum/zypper modules

This commit is contained in:
Pablo Suárez Hernández 2018-05-14 11:54:33 +01:00
parent 02e7647fcf
commit ae2ef507d6
No known key found for this signature in database
GPG Key ID: A9683F02B512C911
2 changed files with 9 additions and 1 deletions

View File

@ -1015,12 +1015,16 @@ def info_installed(*names, **kwargs):
Return the information of the named package(s), installed on the system.
:param all_versions:
Include information for all versions of the packages installed on the minion.
CLI example:
.. code-block:: bash
salt '*' pkg.info_installed <package1>
salt '*' pkg.info_installed <package1> <package2> <package3> ...
salt '*' pkg.info_installed <package1> <package2> <package3> all_versions=True
'''
all_versions = kwargs.get('all_versions', False)
ret = dict()

View File

@ -470,13 +470,17 @@ def info_installed(*names, **kwargs):
Valid attributes are:
ignore, report
:param all_versions:
Include information for all versions of the packages installed on the minion.
CLI example:
.. code-block:: bash
salt '*' pkg.info_installed <package1>
salt '*' pkg.info_installed <package1> <package2> <package3> ...
salt '*' pkg.info_installed <package1> attr=version,vendor
salt '*' pkg.info_installed <package1> <package2> <package3> all_versions=True
salt '*' pkg.info_installed <package1> attr=version,vendor all_versions=True
salt '*' pkg.info_installed <package1> <package2> <package3> ... attr=version,vendor
salt '*' pkg.info_installed <package1> <package2> <package3> ... attr=version,vendor errors=ignore
salt '*' pkg.info_installed <package1> <package2> <package3> ... attr=version,vendor errors=report