mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
re-add batch support to cherrypy saltapi
This commit is contained in:
parent
6eec04b2db
commit
e790930f5a
1 changed files with 14 additions and 0 deletions
|
@ -109,6 +109,20 @@ class NetapiClient(object):
|
|||
local = salt.client.get_local_client(mopts=self.opts)
|
||||
return local.cmd_subset(*args, **kwargs)
|
||||
|
||||
def local_batch(self, *args, **kwargs):
|
||||
'''
|
||||
Run :ref:`execution modules <all-salt.modules>` against batches of minions
|
||||
|
||||
.. versionadded:: 0.8.4
|
||||
|
||||
Wraps :py:meth:`salt.client.LocalClient.cmd_batch`
|
||||
|
||||
:return: Returns the result from the exeuction module for each batch of
|
||||
returns
|
||||
'''
|
||||
local = salt.client.get_local_client(mopts=self.opts)
|
||||
return local.cmd_batch(*args, **kwargs)
|
||||
|
||||
def ssh(self, *args, **kwargs):
|
||||
'''
|
||||
Run salt-ssh commands synchronously
|
||||
|
|
Loading…
Add table
Reference in a new issue