mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-04 23:39:09 -07: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 data:
|
||||||
if not binary_data:
|
if not binary_data:
|
||||||
data += '\\n'
|
data += '\n'
|
||||||
out, err = cmd.communicate(input=data)
|
out, err = cmd.communicate(input=data)
|
||||||
rc = cmd.returncode
|
rc = cmd.returncode
|
||||||
except (OSError, IOError), e:
|
except (OSError, IOError), e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue