Merge pull request #15056 from dmyerscough/fix-ssh-timeout

Fix #14981 ssh timeout
This commit is contained in:
Thomas S Hatch 2014-08-19 16:27:23 -06:00
commit 84da7fd57e

View File

@ -1446,7 +1446,8 @@ class SSHClient(object):
''' '''
opts = copy.deepcopy(self.opts) opts = copy.deepcopy(self.opts)
opts.update(kwargs) opts.update(kwargs)
opts['timeout'] = timeout if timeout:
opts['timeout'] = timeout
arg = salt.utils.args.condition_input(arg, kwarg) arg = salt.utils.args.condition_input(arg, kwarg)
opts['argv'] = [fun] + arg opts['argv'] = [fun] + arg
opts['selected_target_option'] = expr_form opts['selected_target_option'] = expr_form