Moved kwargs from __init__ to execute() in services, optimized logging and a lot of bug fixes and refactoring. Bug fixes too.

This commit is contained in:
Johannes Findeisen 2022-10-01 08:43:19 +02:00
commit d57fd97fbd
16 changed files with 98 additions and 98 deletions

View file

@ -7,18 +7,17 @@ from linspector.core.helpers import log
from linspector.core.service import Service
def create(configuration, environment, **kwargs):
return ShellService(configuration, environment, **kwargs)
def create(configuration, environment):
return ShellService(configuration, environment)
class ShellService(Service):
def __init__(self, configuration, environment, **kwargs):
super().__init__(configuration, environment, **kwargs)
def __init__(self, configuration, environment):
super().__init__(configuration, environment)
self.__configuration = configuration
self.__environment = environment
self.__kwargs = kwargs
def execute(self):
def execute(self, **kwargs):
return