mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix the documentation
This commit is contained in:
parent
181314b20e
commit
b72b8d5323
1 changed files with 6 additions and 0 deletions
|
@ -405,6 +405,10 @@ def info(*packages, **attr):
|
|||
If no packages specified, all packages will be returned.
|
||||
|
||||
:param packages:
|
||||
: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.
|
||||
:return:
|
||||
|
||||
CLI example:
|
||||
|
@ -412,6 +416,8 @@ def info(*packages, **attr):
|
|||
.. code-block:: bash
|
||||
|
||||
salt '*' lowpkg.info apache2 bash
|
||||
salt '*' lowpkg.info apache2 bash attr=version
|
||||
salt '*' lowpkg.info apache2 bash attr=version,build_date_iso,size
|
||||
'''
|
||||
|
||||
cmd = packages and "rpm -q {0}".format(' '.join(packages)) or "rpm -qa"
|
||||
|
|
Loading…
Add table
Reference in a new issue