implemented not showing skipped hosts config
This commit is contained in:
parent
514fa73fcd
commit
b6c6ed91fe
3 changed files with 12 additions and 9 deletions
|
@ -200,6 +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:
|
||||||
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
|
||||||
|
|
|
@ -77,6 +77,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:
|
||||||
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)
|
||||||
|
|
|
@ -22,7 +22,8 @@ __metaclass__ = type
|
||||||
from six.moves import queue as Queue
|
from six.moves import queue as Queue
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from ansible.errors import *
|
from ansible import constants as C
|
||||||
|
from ansible.errors import AnsibleError, AnsibleParserError
|
||||||
from ansible.executor.task_result import TaskResult
|
from ansible.executor.task_result import TaskResult
|
||||||
from ansible.inventory.host import Host
|
from ansible.inventory.host import Host
|
||||||
from ansible.inventory.group import Group
|
from ansible.inventory.group import Group
|
||||||
|
|
Loading…
Add table
Reference in a new issue