func_alias should be list_ and should have a corresponding list_ fn.

This commit is contained in:
C. R. Oldham 2015-09-24 09:17:22 -06:00
parent 0221f7ee4e
commit 93a6397598

View File

@ -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