summaryrefslogtreecommitdiffstats
path: root/callback_plugins/fedmsg_callback.py
diff options
context:
space:
mode:
Diffstat (limited to 'callback_plugins/fedmsg_callback.py')
-rw-r--r--callback_plugins/fedmsg_callback.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/callback_plugins/fedmsg_callback.py b/callback_plugins/fedmsg_callback.py
index 5dd550908..bf00b3180 100644
--- a/callback_plugins/fedmsg_callback.py
+++ b/callback_plugins/fedmsg_callback.py
@@ -22,6 +22,11 @@ import pwd
import fedmsg
import fedmsg.config
+try:
+ from ansible.plugins.callback import CallbackBase
+except ImportError:
+ # Ansible v1 compat
+ CallbackBase = object
def getlogin():
try:
@@ -31,7 +36,7 @@ def getlogin():
return user
-class CallbackModule(object):
+class CallbackModule(CallbackBase):
""" Publish playbook starts and stops to fedmsg. """
playbook_path = None