From 6aaad5dc9b04db161b79bad7157ae542cb86c3fd Mon Sep 17 00:00:00 2001 From: Chris Church Date: Mon, 23 Jun 2014 06:09:08 -0400 Subject: [PATCH] Fix missing arg for _remote_chmod method. --- lib/ansible/runner/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index d8d9463028..f9980f8573 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -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')): # 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 = "" 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'): # 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: cmd = "%s %s" % (remote_module_path, argsfile)