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:
parent
f360a1b653
commit
117607d742
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue