Add some kwargs to the client for syndic

This commit is contained in:
Thomas S Hatch 2011-07-30 15:55:38 -06:00
parent 147e712222
commit fd2c9c8b06
2 changed files with 4 additions and 2 deletions

View File

@ -231,7 +231,7 @@ class LocalClient(object):
'exsel': self._check_grain_minions,
}[expr_form](expr)
def pub(self, tgt, fun, arg=(), expr_form='glob', ret=''):
def pub(self, tgt, fun, arg=(), expr_form='glob', ret='', jid=''):
'''
Take the required arguments and publish the given command.
Arguments:
@ -272,6 +272,8 @@ class LocalClient(object):
key=self.key,
tgt_type=expr_form,
ret=ret)
if jid:
package['jid'] = jid
# Prep zmq
context = zmq.Context()
socket = context.socket(zmq.REQ)
@ -280,4 +282,3 @@ class LocalClient(object):
payload = salt.payload.unpackage(socket.recv())
return {'jid': payload['load']['jid'],
'minions': minions}

View File

@ -23,6 +23,7 @@ import salt.utils
import salt.modules
import salt.returners
import salt.loader
import salt.client
log = logging.getLogger(__name__)