Fix missing arg for _remote_chmod method.

This commit is contained in:
Chris Church 2014-06-23 06:09:08 -04:00
parent 9631309433
commit 6aaad5dc9b

View file

@ -424,7 +424,7 @@ class Runner(object):
if "tmp" in tmp and ((self.sudo and self.sudo_user != 'root') or (self.su and self.su_user != 'root')): if "tmp" in tmp and ((self.sudo and self.sudo_user != 'root') or (self.su and self.su_user != 'root')):
# deal with possible umask issues once sudo'ed to other user # deal with possible umask issues once sudo'ed to other user
self._remote_chmod(conn, 'a+r', remote_module_path) self._remote_chmod(conn, 'a+r', remote_module_path, tmp)
cmd = "" cmd = ""
in_data = None in_data = None
@ -452,7 +452,7 @@ class Runner(object):
if (self.sudo and self.sudo_user != 'root') or (self.su and self.su_user != 'root'): if (self.sudo and self.sudo_user != 'root') or (self.su and self.su_user != 'root'):
# deal with possible umask issues once sudo'ed to other user # deal with possible umask issues once sudo'ed to other user
self._remote_chmod(conn, 'a+r', argsfile) self._remote_chmod(conn, 'a+r', argsfile, tmp)
if async_jid is None: if async_jid is None:
cmd = "%s %s" % (remote_module_path, argsfile) cmd = "%s %s" % (remote_module_path, argsfile)