mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix typo in run_command when sending data that is not binary
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user