1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #7487 from nirvinehh/devel

Clean non-printable chars from stdout instead of dropping the whole thin...
This commit is contained in:
Brian Coca 2015-04-01 21:36:03 -04:00
commit 06c837cd87

View file

@ -1067,7 +1067,7 @@ class Runner(object):
if hasattr(sys.stdout, "isatty"):
if "stdout" in data and sys.stdout.isatty():
if not string_functions.isprintable(data['stdout']):
data['stdout'] = ''
data['stdout'] = ''.join(c for c in data['stdout'] if string_functions.isprintable(c))
if 'item' in inject:
result.result['item'] = inject['item']