mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 20:08:41 +00:00
Fix warning/error extraction. (#305)
This commit is contained in:
parent
48391d6755
commit
ba5e6f89f3
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- "docker_compose - fix Python 3 type error when extracting warnings or errors from docker-compose's output (https://github.com/ansible-collections/community.docker/pull/305)."
|
||||||
@ -587,8 +587,8 @@ def attempt_extract_errors(exc_str, stdout, stderr):
|
|||||||
msg = 'unknown cause'
|
msg = 'unknown cause'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'warnings': [w.encode('utf-8') for w in warnings],
|
'warnings': [to_native(w) for w in warnings],
|
||||||
'errors': [e.encode('utf-8') for e in errors],
|
'errors': [to_native(e) for e in errors],
|
||||||
'msg': msg,
|
'msg': msg,
|
||||||
'module_stderr': ''.join(stderr),
|
'module_stderr': ''.join(stderr),
|
||||||
'module_stdout': ''.join(stdout)
|
'module_stdout': ''.join(stdout)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user