From 117607d7426fc08aa2f4f411dc9a5d5d9839335b Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 17 Apr 2018 15:31:58 +0100 Subject: [PATCH] ansible: fix new-style module argv[0] Previously it was the absolute path to the module on the master. This is wrong, it should be the temporary file name on the target. --- ansible_mitogen/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_mitogen/runner.py b/ansible_mitogen/runner.py index ab80cbe0..28f8b3cd 100644 --- a/ansible_mitogen/runner.py +++ b/ansible_mitogen/runner.py @@ -367,7 +367,7 @@ class NewStyleRunner(ScriptRunner): def setup(self): super(NewStyleRunner, self).setup() self._stdio = NewStyleStdio(self.args) - self._argv = TemporaryArgv([self.path]) + self._argv = TemporaryArgv([self.program_fp.name]) def revert(self): self._argv.revert()