mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add 'all_versions' documentation for info_installed on yum/zypper modules
This commit is contained in:
parent
02e7647fcf
commit
ae2ef507d6
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user