MCPcopy Create free account
hub / github.com/saltstack/salt / local_batch

Method local_batch

salt/netapi/__init__.py:252–264  ·  view source on GitHub ↗

Run :ref:`execution 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

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

250 return client.cmd_subset(*args, **kwargs)
251
252 def local_batch(self, *args, **kwargs):
253 """
254 Run :ref:`execution modules <all-salt.modules>` against batches of minions
255
256 .. versionadded:: 0.8.4
257
258 Wraps :py:meth:`salt.client.LocalClient.cmd_batch`
259
260 :return: Returns the result from the exeuction module for each batch of
261 returns
262 """
263 with salt.client.get_local_client(mopts=self.opts) as client:
264 return client.cmd_batch(*args, **kwargs)
265
266 def ssh(self, *args, **kwargs):
267 """

Callers

nothing calls this directly

Calls 1

cmd_batchMethod · 0.80

Tested by

no test coverage detected