Fix sending facts to Foreman

(cherry picked from commit 9ad90de4bc)
pull/30342/head
Marek Hulan 7 years ago committed by Toshio Kuratomi
parent 0130da1773
commit 8d305461fb

@ -224,7 +224,7 @@ class CallbackModule(CallbackBase):
res = result._result res = result._result
module = result._task.action module = result._task.action
if module == 'setup': if module == 'setup' or 'ansible_facts' in res:
host = result._host.get_name() host = result._host.get_name()
self.send_facts(host, res) self.send_facts(host, res)
else: else:

Loading…
Cancel
Save