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.
This commit is contained in:
David Wilson 2018-04-17 15:31:58 +01:00
parent f360a1b653
commit 117607d742
1 changed files with 1 additions and 1 deletions

View File

@ -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()