commit 3b042758999ffa01f74d53cfc822da212f22fb8f
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Jul 31 13:16:33 2019 +0200
Sync callback
callback_plugins/logdetail.py | 2 ++
callback_plugins/logdetail2.py | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/callback_plugins/logdetail.py b/callback_plugins/logdetail.py
index 1edd0ab..289e7ed 100644
--- a/callback_plugins/logdetail.py
+++ b/callback_plugins/logdetail.py
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <
http://www.gnu.org/licenses/>.
+from __future__ import absolute_import
+
import os
import time
import json
diff --git a/callback_plugins/logdetail2.py b/callback_plugins/logdetail2.py
index d746b8e..fb2f194 100644
--- a/callback_plugins/logdetail2.py
+++ b/callback_plugins/logdetail2.py
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <
http://www.gnu.org/licenses/>.
+from __future__ import absolute_import
+
import os
import time
import json
@@ -245,7 +247,7 @@ class CallbackModule(CallbackBase):
pb_info['playbook'] = path
pb_info['userid'] = getlogin()
pb_info['extra_vars'] = play._variable_manager.extra_vars
- pb_info['inventory'] = play._variable_manager._inventory.src()
+ pb_info['inventory'] =
play._variable_manager._inventory._sources
pb_info['playbook_checksum'] = secure_hash(path)
pb_info['check'] = self.play_context.check_mode
pb_info['diff'] = self.play_context.diff