mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
func_alias should be list_ and should have a corresponding list_ fn.
This commit is contained in:
parent
0221f7ee4e
commit
93a6397598
@ -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…
Reference in New Issue
Block a user