mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update documentation accordingly.
This commit is contained in:
parent
1d384b6abd
commit
12f8e93247
1 changed files with 10 additions and 0 deletions
|
@ -111,6 +111,14 @@ def info_installed(*names, **kwargs):
|
|||
build_host, group, source_rpm, arch, epoch, size, license, signature, packager, url,
|
||||
summary, description.
|
||||
|
||||
:param errors:
|
||||
Handle RPM field errors. If 'ignore' is chosen, then various mistakes are simply ignored and omitted
|
||||
from the texts or strings. If 'report' is chonen, then a field with a mistake is not returned, instead
|
||||
a 'N/A (broken)' (not available, broken) text is placed.
|
||||
|
||||
Valid attributes are:
|
||||
ignore, report
|
||||
|
||||
CLI example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
@ -119,6 +127,8 @@ def info_installed(*names, **kwargs):
|
|||
salt '*' pkg.info_installed <package1> <package2> <package3> ...
|
||||
salt '*' pkg.info_installed <package1> attr=version,vendor
|
||||
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
|
||||
'''
|
||||
ret = dict()
|
||||
for pkg_name, pkg_nfo in __salt__['lowpkg.info'](*names, **kwargs).items():
|
||||
|
|
Loading…
Add table
Reference in a new issue