mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Clean non-printable chars from stdout instead of dropping the whole thing
This commit is contained in:
parent
10414145b2
commit
6b70ee23ab
1 changed files with 1 additions and 1 deletions
|
@ -877,7 +877,7 @@ class Runner(object):
|
||||||
if hasattr(sys.stdout, "isatty"):
|
if hasattr(sys.stdout, "isatty"):
|
||||||
if "stdout" in data and sys.stdout.isatty():
|
if "stdout" in data and sys.stdout.isatty():
|
||||||
if not string_functions.isprintable(data['stdout']):
|
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:
|
if 'item' in inject:
|
||||||
result.result['item'] = inject['item']
|
result.result['item'] = inject['item']
|
||||||
|
|
Loading…
Reference in a new issue