mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix typo in run_command when sending data that is not binary
This commit is contained in:
parent
b1a37dcc08
commit
5233d4bc31
1 changed files with 1 additions and 1 deletions
|
@ -1082,7 +1082,7 @@ class AnsibleModule(object):
|
|||
|
||||
if data:
|
||||
if not binary_data:
|
||||
data += '\\n'
|
||||
data += '\n'
|
||||
out, err = cmd.communicate(input=data)
|
||||
rc = cmd.returncode
|
||||
except (OSError, IOError), e:
|
||||
|
|
Loading…
Reference in a new issue