mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
bug fix for #3077, environment settings for script
This commit is contained in:
parent
41425fb535
commit
017e7f24ed
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ class ActionModule(object):
|
||||||
prepcmd = 'chmod +x %s' % tmp_src
|
prepcmd = 'chmod +x %s' % tmp_src
|
||||||
|
|
||||||
# add preparation steps to one ssh roundtrip executing the script
|
# add preparation steps to one ssh roundtrip executing the script
|
||||||
module_args = prepcmd + '; ' + tmp_src + ' ' + args
|
env_string = self.runner._compute_environment_string(inject)
|
||||||
|
module_args = prepcmd + '; ' + env_string + tmp_src + ' ' + args
|
||||||
|
|
||||||
handler = utils.plugins.action_loader.get('raw', self.runner)
|
handler = utils.plugins.action_loader.get('raw', self.runner)
|
||||||
result = handler.run(conn, tmp, 'raw', module_args, inject)
|
result = handler.run(conn, tmp, 'raw', module_args, inject)
|
||||||
|
|
Loading…
Reference in a new issue