Skip to content

Commit

Permalink
Merge pull request ansible-collections#172 from saito-hideki/issue/169
Browse files Browse the repository at this point in the history
Append line-separator to the end of command line

Reviewed-by: https://github.com/apps/ansible-zuul
  • Loading branch information
ansible-zuul[bot] authored Jun 3, 2021
2 parents b98c792 + 13e77fd commit 1793cd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/169_add_lineseparator_to_command.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- at - append line-separator to the end of the ``command`` (https://github.com/ansible-collections/ansible.posix/issues/169).
2 changes: 1 addition & 1 deletion plugins/modules/at.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_matching_jobs(module, at_cmd, script_file):
def create_tempfile(command):
filed, script_file = tempfile.mkstemp(prefix='at')
fileh = os.fdopen(filed, 'w')
fileh.write(command)
fileh.write(command + os.linesep)
fileh.close()
return script_file

Expand Down

0 comments on commit 1793cd7

Please sign in to comment.