mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
fix TypeError: coercing to Unicode: need string or buffer, AnsibleParserError found
This commit is contained in:
@@ -273,7 +273,7 @@ class Display:
|
|||||||
wrapped = textwrap.wrap(new_msg, self.columns)
|
wrapped = textwrap.wrap(new_msg, self.columns)
|
||||||
new_msg = u"\n".join(wrapped) + u"\n"
|
new_msg = u"\n".join(wrapped) + u"\n"
|
||||||
else:
|
else:
|
||||||
new_msg = u"ERROR! " + msg
|
new_msg = u"ERROR! %s" % msg
|
||||||
if new_msg not in self._errors:
|
if new_msg not in self._errors:
|
||||||
self.display(new_msg, color=C.COLOR_ERROR, stderr=True)
|
self.display(new_msg, color=C.COLOR_ERROR, stderr=True)
|
||||||
self._errors[new_msg] = 1
|
self._errors[new_msg] = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user