Merge pull request #10815 from ryan-lane/add-timeout-to-publish-runner

Give publish.runner module call a timeout
This commit is contained in:
Thomas S Hatch 2014-02-27 10:17:56 -07:00
commit 8935f5e0e1

View File

@ -202,7 +202,7 @@ def full_data(tgt, fun, arg=None, expr_form='glob', returner='', timeout=5):
form='full')
def runner(fun, arg=None):
def runner(fun, arg=None, timeout=5):
'''
Execute a runner on the master and return the data from the runner
function
@ -223,6 +223,7 @@ def runner(fun, arg=None):
'fun': fun,
'arg': arg,
'tok': tok,
'tmo': timeout,
'id': __opts__['id']}
sreq = salt.transport.Channel.factory(__opts__)