summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag Wieers <dag@wieers.com>2016-03-17 00:18:13 +0100
committerDag Wieers <dag@wieers.com>2016-03-17 00:18:13 +0100
commited457ad53b01ce9045f9f8db53c6816fdc8581da (patch)
tree48f030c6cf2041b1992132aed792b8077e0d7f47
parentf3b9449e079fd5403f25c18d7d71417a2fc0e639 (diff)
downloadansible-ed457ad53b01ce9045f9f8db53c6816fdc8581da.tar.gz
Fix the color when unreachable in default cb plugin
The dedicated color for unreachable errors was not being used in the default cb plugin. This corrects the color.
-rw-r--r--lib/ansible/plugins/callback/default.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/callback/default.py b/lib/ansible/plugins/callback/default.py
index 1bcb4b244d..bbce48025a 100644
--- a/lib/ansible/plugins/callback/default.py
+++ b/lib/ansible/plugins/callback/default.py
@@ -103,9 +103,9 @@ class CallbackModule(CallbackBase):
def v2_runner_on_unreachable(self, result):
delegated_vars = result._result.get('_ansible_delegated_vars', None)
if delegated_vars:
- self._display.display("fatal: [%s -> %s]: UNREACHABLE! => %s" % (result._host.get_name(), delegated_vars['ansible_host'], self._dump_results(result._result)), color=C.COLOR_ERROR)
+ self._display.display("fatal: [%s -> %s]: UNREACHABLE! => %s" % (result._host.get_name(), delegated_vars['ansible_host'], self._dump_results(result._result)), color=C.COLOR_UNREACHABLE)
else:
- self._display.display("fatal: [%s]: UNREACHABLE! => %s" % (result._host.get_name(), self._dump_results(result._result)), color=C.COLOR_ERROR)
+ self._display.display("fatal: [%s]: UNREACHABLE! => %s" % (result._host.get_name(), self._dump_results(result._result)), color=C.COLOR_UNREACHABLE)
def v2_playbook_on_no_hosts_matched(self):
self._display.display("skipping: no hosts matched", color=C.COLOR_SKIP)