Remove unused __init__ attributes from pmgeh related classes

This commit is contained in:
Kristóf Tóth 2018-02-27 16:51:10 +01:00
parent a6bbe6df55
commit 9eaced9f02
2 changed files with 4 additions and 5 deletions

View File

@ -6,8 +6,7 @@ log = logging.getLogger(__name__)
class ProcessManager(SupervisorMixin):
def __init__(self, supervisor_process_name):
self.process_name = supervisor_process_name
def __init__(self):
self.commands = {'start': self.start_process,
'stop': self.stop_process,
'restart': self.restart_process}
@ -17,10 +16,10 @@ class ProcessManager(SupervisorMixin):
class ProcessManagingEventHandler(TriggerlessEventHandler):
def __init__(self, key, supervisor_process_name):
def __init__(self, key):
super().__init__(key)
self.key = key
self.processmanager = ProcessManager(supervisor_process_name)
self.processmanager = ProcessManager()
self.uplink = ServerUplinkConnector()
def handle_event(self, key, data_json):

View File

@ -9,7 +9,7 @@ from tfw.config import tfwenv
if __name__ == '__main__':
eventhandlers = {SourceCodeEventHandler('webide', tfwenv.WEBIDE_WD),
TerminadoEventHandler('terminado', 'terminado'),
ProcessManagingEventHandler('processmanager', 'login')}
ProcessManagingEventHandler('processmanager')}
try:
IOLoop.instance().start()
finally: