mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
func_alias should be list_ and should have a corresponding list_ fn.
This commit is contained in:
parent
0221f7ee4e
commit
93a6397598
1 changed files with 14 additions and 1 deletions
|
@ -11,7 +11,7 @@ __proxyenabled__ = ['rest_sample']
|
|||
log = logging.getLogger(__name__)
|
||||
|
||||
__func_alias__ = {
|
||||
'reload_': 'reload'
|
||||
'list_': 'list'
|
||||
}
|
||||
|
||||
# Define the module's virtual name
|
||||
|
@ -41,6 +41,19 @@ def get_all():
|
|||
return __opts__['proxymodule'][proxy_fn]()
|
||||
|
||||
|
||||
def list_():
|
||||
'''
|
||||
Return a list of all available services
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' service.list
|
||||
'''
|
||||
return get_all()
|
||||
|
||||
|
||||
def start(name, sig=None):
|
||||
'''
|
||||
Start the specified service on the rest_sample
|
||||
|
|
Loading…
Add table
Reference in a new issue