mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge various stdout callback plugins into 'default' (#41058)
This allows mixing and matching of stdout callback features
This commit is contained in:
@@ -134,7 +134,7 @@ class CallbackBase(AnsiblePlugin):
|
||||
self._display.deprecated(**warning)
|
||||
del res['deprecations']
|
||||
|
||||
def _handle_exception(self, result):
|
||||
def _handle_exception(self, result, use_stderr=False):
|
||||
|
||||
if 'exception' in result:
|
||||
msg = "An exception occurred during task execution. "
|
||||
@@ -146,7 +146,7 @@ class CallbackBase(AnsiblePlugin):
|
||||
msg = "The full traceback is:\n" + result['exception']
|
||||
del result['exception']
|
||||
|
||||
self._display.display(msg, color=C.COLOR_ERROR)
|
||||
self._display.display(msg, color=C.COLOR_ERROR, stderr=use_stderr)
|
||||
|
||||
def _get_diff(self, difflist):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user