mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
Add boilerplate and fix initialisation to match what 2.0 expects
This commit is contained in:
parent
c02ceb8f12
commit
5f2f5e2b59
1 changed files with 5 additions and 2 deletions
|
@ -52,6 +52,9 @@ Or create a logentries.ini config file that sites next to the plugin with the fo
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
import random
|
import random
|
||||||
|
@ -188,8 +191,8 @@ class CallbackModule(CallbackBase):
|
||||||
CALLBACK_TYPE = 'notification'
|
CALLBACK_TYPE = 'notification'
|
||||||
CALLBACK_NAME = 'logentries'
|
CALLBACK_NAME = 'logentries'
|
||||||
|
|
||||||
def __init__(self, display):
|
def __init__(self):
|
||||||
super(CallbackModule, self).__init__(display)
|
super(CallbackModule, self).__init__()
|
||||||
|
|
||||||
config_path = os.path.abspath(os.path.dirname(__file__))
|
config_path = os.path.abspath(os.path.dirname(__file__))
|
||||||
config = ConfigParser.ConfigParser()
|
config = ConfigParser.ConfigParser()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue