mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fix nonexistent module_name in callbacks (#23587)
This commit is contained in:
committed by
Matt Davis
parent
b8507b676b
commit
7c308b3f8c
@@ -189,10 +189,8 @@ class CallbackModule(CallbackBase):
|
||||
|
||||
def v2_runner_on_ok(self, result):
|
||||
res = result._result
|
||||
try:
|
||||
module = res['invocation']['module_name']
|
||||
except KeyError:
|
||||
module = None
|
||||
module = result._task.action
|
||||
|
||||
if module == 'setup':
|
||||
host = result._host.get_name()
|
||||
self.send_facts(host, res)
|
||||
|
||||
Reference in New Issue
Block a user