mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Merge pull request #172 from saito-hideki/issue/169
Append line-separator to the end of command line Reviewed-by: https://github.com/apps/ansible-zuul
This commit is contained in:
commit
1793cd70c4
2 changed files with 4 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- at - append line-separator to the end of the ``command`` (https://github.com/ansible-collections/ansible.posix/issues/169).
|
||||||
|
|
@ -129,7 +129,7 @@ def get_matching_jobs(module, at_cmd, script_file):
|
||||||
def create_tempfile(command):
|
def create_tempfile(command):
|
||||||
filed, script_file = tempfile.mkstemp(prefix='at')
|
filed, script_file = tempfile.mkstemp(prefix='at')
|
||||||
fileh = os.fdopen(filed, 'w')
|
fileh = os.fdopen(filed, 'w')
|
||||||
fileh.write(command)
|
fileh.write(command + os.linesep)
|
||||||
fileh.close()
|
fileh.close()
|
||||||
return script_file
|
return script_file
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue