fixed signature for init on callbacks

also removed passing display to base class which already handles this
This commit is contained in:
Brian Coca 2015-12-01 13:28:16 -08:00
parent e1bcb43e76
commit 3e01516783
7 changed files with 14 additions and 14 deletions

View file

@ -50,9 +50,9 @@ class CallbackModule(CallbackBase):
CALLBACK_NAME = 'hipchat'
CALLBACK_NEEDS_WHITELIST = True
def __init__(self, display):
def __init__(self):
super(CallbackModule, self).__init__(display)
super(CallbackModule, self).__init__()
if not HAS_PRETTYTABLE:
self.disabled = True

View file

@ -45,9 +45,9 @@ class CallbackModule(CallbackBase):
TIME_FORMAT="%b %d %Y %H:%M:%S"
MSG_FORMAT="%(now)s - %(category)s - %(data)s\n\n"
def __init__(self, display):
def __init__(self):
super(CallbackModule, self).__init__(display)
super(CallbackModule, self).__init__()
if not os.path.exists("/var/log/ansible/hosts"):
os.makedirs("/var/log/ansible/hosts")

View file

@ -40,9 +40,9 @@ class CallbackModule(CallbackBase):
CALLBACK_NAME = 'osx_say'
CALLBACK_NEEDS_WHITELIST = True
def __init__(self, display):
def __init__(self):
super(CallbackModule, self).__init__(display)
super(CallbackModule, self).__init__()
# plugin disable itself if say is not present
# ansible will not call any callback if disabled is set to True

View file

@ -71,11 +71,11 @@ class CallbackModule(CallbackBase):
CALLBACK_NAME = 'profile_tasks'
CALLBACK_NEEDS_WHITELIST = True
def __init__(self, display):
def __init__(self):
self.stats = {}
self.current = None
super(CallbackModule, self).__init__(display)
super(CallbackModule, self).__init__()
def _record_task(self, name):
"""

View file

@ -28,9 +28,9 @@ class CallbackModule(CallbackBase):
CALLBACK_NAME = 'syslog_json'
CALLBACK_NEEDS_WHITELIST = True
def __init__(self, display):
def __init__(self):
super(CallbackModule, self).__init__(display)
super(CallbackModule, self).__init__()
self.logger = logging.getLogger('ansible logger')
self.logger.setLevel(logging.DEBUG)

View file

@ -16,9 +16,9 @@ class CallbackModule(CallbackBase):
CALLBACK_NAME = 'timer'
CALLBACK_NEEDS_WHITELIST = True
def __init__(self, display):
def __init__(self):
super(CallbackModule, self).__init__(display)
super(CallbackModule, self).__init__()
self.start_time = datetime.now()

View file

@ -36,8 +36,8 @@ class CallbackModule(CallbackBase):
CALLBACK_NAME = 'tree'
CALLBACK_NEEDS_WHITELIST = True
def __init__(self, display):
super(CallbackModule, self).__init__(display)
def __init__(self):
super(CallbackModule, self).__init__()
self.tree = TREE_DIR
if not self.tree: