Commit f9d817e6 by Brian Coca

now looks at correct verbosity and removes the need to set a copy of it in _verbosity

parent 1163e38d
...@@ -34,7 +34,7 @@ class CallbackModule(CallbackBase): ...@@ -34,7 +34,7 @@ class CallbackModule(CallbackBase):
CALLBACK_TYPE = 'stdout' CALLBACK_TYPE = 'stdout'
def v2_on_any(self, *args, **kwargs): def v2_on_any(self, *args, **kwargs):
pass self.on_any(args, kwargs)
def v2_runner_on_failed(self, result, ignore_errors=False): def v2_runner_on_failed(self, result, ignore_errors=False):
if 'exception' in result._result: if 'exception' in result._result:
...@@ -67,7 +67,7 @@ class CallbackModule(CallbackBase): ...@@ -67,7 +67,7 @@ class CallbackModule(CallbackBase):
msg = "ok: [%s]" % result._host.get_name() msg = "ok: [%s]" % result._host.get_name()
color = 'green' color = 'green'
if (self._display._verbosity > 0 or 'verbose_always' in result._result) and result._task.action not in ('setup', 'include'): if (self._display.verbosity > 0 or 'verbose_always' in result._result) and result._task.action not in ('setup', 'include'):
indent = None indent = None
if 'verbose_always' in result._result: if 'verbose_always' in result._result:
indent = 4 indent = 4
...@@ -77,7 +77,7 @@ class CallbackModule(CallbackBase): ...@@ -77,7 +77,7 @@ class CallbackModule(CallbackBase):
def v2_runner_on_skipped(self, result): def v2_runner_on_skipped(self, result):
msg = "skipping: [%s]" % result._host.get_name() msg = "skipping: [%s]" % result._host.get_name()
if self._display._verbosity > 0 or 'verbose_always' in result._result: if self._display.verbosity > 0 or 'verbose_always' in result._result:
indent = None indent = None
if 'verbose_always' in result._result: if 'verbose_always' in result._result:
indent = 4 indent = 4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment