From 2621f48189519fe94edefac60ef9bceaf6892ad6 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 1 Feb 2017 15:29:59 -0500 Subject: [PATCH] We specifically need to convert the ansible included file type for include events --- awx/lib/tower_display_callback/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/lib/tower_display_callback/module.py b/awx/lib/tower_display_callback/module.py index 02c5eee432..c553b08853 100644 --- a/awx/lib/tower_display_callback/module.py +++ b/awx/lib/tower_display_callback/module.py @@ -182,7 +182,7 @@ class BaseCallbackModule(CallbackBase): def v2_playbook_on_include(self, included_file): event_data = dict( - included_file=included_file, + included_file=included_file._filename if included_file is not None else None, ) with self.capture_event_data('playbook_on_include', **event_data): super(BaseCallbackModule, self).v2_playbook_on_include(included_file)