Commit 6b73cac3 by Brian Coca

corrected skipped_hosts constant usage, thanks @benjixx

parent 5a65dce6
...@@ -200,7 +200,7 @@ class CallbackBase: ...@@ -200,7 +200,7 @@ class CallbackBase:
self.runner_on_ok(host, result._result) self.runner_on_ok(host, result._result)
def v2_runner_on_skipped(self, result): def v2_runner_on_skipped(self, result):
if not C.DISPLAY_SKIPPED_HOSTS: if C.DISPLAY_SKIPPED_HOSTS:
host = result._host.get_name() host = result._host.get_name()
#FIXME, get item to pass through #FIXME, get item to pass through
item = None item = None
......
...@@ -78,7 +78,7 @@ class CallbackModule(CallbackBase): ...@@ -78,7 +78,7 @@ class CallbackModule(CallbackBase):
self._handle_warnings(result._result) self._handle_warnings(result._result)
def v2_runner_on_skipped(self, result): def v2_runner_on_skipped(self, result):
if not C.DISPLAY_SKIPPED_HOSTS: if C.DISPLAY_SKIPPED_HOSTS:
msg = "skipping: [%s]" % result._host.get_name() msg = "skipping: [%s]" % result._host.get_name()
if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and not '_ansible_verbose_override' in result._result: if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and not '_ansible_verbose_override' in result._result:
msg += " => %s" % self._dump_results(result._result) msg += " => %s" % self._dump_results(result._result)
......
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