diff --git a/ansible_rulebook/engine.py b/ansible_rulebook/engine.py index f2c0cc46..a7c048ff 100644 --- a/ansible_rulebook/engine.py +++ b/ansible_rulebook/engine.py @@ -228,7 +228,7 @@ def __init__( project_data_file: Optional[str] = None, parsed_args=None, ): - self.pa_runner = PlaybookActionRunner() + self.pa_runner = PlaybookActionRunner(event_log) self.pa_runner_task = None self.action_loop_task = None self.event_log = event_log @@ -456,7 +456,8 @@ class PlaybookActionRunner: run_playbook, run_module, and run_job_template. """ - def __init__(self): + def __init__(self, event_log): + self.event_log = event_log self.actions = asyncio.Queue() self.result = None self.stopped = True