mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update docstring according to the boolean flag
This commit is contained in:
parent
a7d3e0d5ad
commit
43254aa993
1 changed files with 4 additions and 5 deletions
|
@ -112,9 +112,9 @@ def info_installed(*names, **kwargs):
|
|||
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.
|
||||
Handle RPM field errors (true|false). By default, various mistakes in the textual fields are simply ignored and
|
||||
omitted from the data. Otherwise a field with a mistake is not returned, instead a 'N/A (bad UTF-8)'
|
||||
(not available, broken) text is returned.
|
||||
|
||||
Valid attributes are:
|
||||
ignore, report
|
||||
|
@ -127,8 +127,7 @@ 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
|
||||
salt '*' pkg.info_installed <package1> <package2> <package3> ... attr=version,vendor errors=true
|
||||
'''
|
||||
ret = dict()
|
||||
for pkg_name, pkg_nfo in __salt__['lowpkg.info'](*names, **kwargs).items():
|
||||
|
|
Loading…
Add table
Reference in a new issue