Update documentation

This commit is contained in:
Bo Maryniuk 2016-01-11 14:37:57 +01:00
parent 6e3743dce6
commit ba64df4def

View file

@ -100,12 +100,20 @@ def info_installed(*names, **attr):
'''
Return the information of the named package(s), installed on the system.
:names names of the packages to get information about.
:attr attributes. If no 'attr' is specified, all available attributes returned.
Valid attributes are:
version, vendor, release, build_date, install_date, build_host, group, source_rpm,
size, license, signature, packager, url, summary, description.
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> ... attr=version,vendor
'''
ret = dict()
for pkg_name, pkg_nfo in __salt__['lowpkg.info'](*names, **attr).items():