mirror of https://github.com/jumpserver/jumpserver
21 lines
552 B
Python
21 lines
552 B
Python
# from .backup.manager import AccountBackupExecutionManager
|
|
#
|
|
#
|
|
from .change_secret.manager import ChangeSecretManager
|
|
from .gather_facts.manager import GatherFactsManager
|
|
|
|
|
|
class ExecutionManager:
|
|
manager_type_mapper = {
|
|
'change_secret': ChangeSecretManager,
|
|
'gather_facts': GatherFactsManager,
|
|
}
|
|
|
|
def __init__(self, execution):
|
|
self.execution = execution
|
|
self._runner = self.manager_type_mapper[execution.automation.type](execution)
|
|
|
|
def run(self, **kwargs):
|
|
return self._runner.run(**kwargs)
|
|
|