mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Rename existing 'info' to 'info_available'
This commit is contained in:
parent
7b376fd5c3
commit
137eb75ca2
1 changed files with 5 additions and 3 deletions
|
@ -95,7 +95,6 @@ def list_upgrades(refresh=True):
|
|||
list_updates = list_upgrades
|
||||
|
||||
|
||||
def info(*names, **kwargs):
|
||||
def info_installed(*names):
|
||||
'''
|
||||
Return the information of the named package(s), installed on the system.
|
||||
|
@ -120,6 +119,9 @@ def info_installed(*names):
|
|||
ret[pkg_name] = t_nfo
|
||||
|
||||
return ret
|
||||
|
||||
|
||||
def info_available(*names, **kwargs):
|
||||
'''
|
||||
Return the information of the named package available for the system.
|
||||
|
||||
|
@ -127,8 +129,8 @@ def info_installed(*names):
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' pkg.info <package name>
|
||||
salt '*' pkg.info <package1> <package2> <package3> ...
|
||||
salt '*' pkg.info_available <package1>
|
||||
salt '*' pkg.info_available <package1> <package2> <package3> ...
|
||||
'''
|
||||
ret = {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue