mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Renamed call_func to cmd for consistency; made compat alias
Added WheelClient() documentation on the non-eauth cmd & async funcs.
This commit is contained in:
parent
7f147e1212
commit
a4cc496bc7
@ -94,7 +94,7 @@ WheelClient
|
||||
-----------
|
||||
|
||||
.. autoclass:: salt.wheel.WheelClient
|
||||
:members: call_func, cmd_sync, cmd_async
|
||||
:members: cmd, async, cmd_sync, cmd_async
|
||||
|
||||
CloudClient
|
||||
-----------
|
||||
|
@ -45,7 +45,7 @@ class WheelClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object):
|
||||
self.opts = opts
|
||||
self.functions = salt.loader.wheels(opts)
|
||||
|
||||
def call_func(self, fun, **kwargs):
|
||||
def cmd(self, fun, **kwargs):
|
||||
'''
|
||||
Execute a wheel function
|
||||
|
||||
@ -61,6 +61,8 @@ class WheelClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object):
|
||||
'''
|
||||
return self.low(fun, kwargs)
|
||||
|
||||
call_func = cmd # alias for backward-compat
|
||||
|
||||
def master_call(self, **kwargs):
|
||||
'''
|
||||
Execute a wheel function through the master network interface (eauth).
|
||||
|
Loading…
Reference in New Issue
Block a user