Commit 5233d4bc by James Cammarata

Fix typo in run_command when sending data that is not binary

parent b1a37dcc
...@@ -1082,7 +1082,7 @@ class AnsibleModule(object): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment