Skip to content

Commit

Permalink
Merge pull request #53 from airflow-laminar/tkp/hf4
Browse files Browse the repository at this point in the history
Fix for cfg attribute
  • Loading branch information
timkpaine authored Dec 17, 2024
2 parents ffa8b54 + 555fa4e commit bede7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow_supervisor/airflow/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_step_kwargs(self, step: SupervisorTaskStep) -> Dict:
**self._ssh_operator_kwargs,
"command": f"""
{self._command_prefix}
_airflow_supervisor_command {step} '{self._supervisor_cfg.model_dump_json()}'
_airflow_supervisor_command {step} '{self._cfg.model_dump_json()}'
""",
}
elif step in ("start-supervisor", "stop-supervisor", "unconfigure-supervisor", "force-kill"):
Expand All @@ -64,7 +64,7 @@ def get_step_kwargs(self, step: SupervisorTaskStep) -> Dict:
**self._ssh_operator_kwargs,
"command": f"""
{self._command_prefix}
_airflow_supervisor_command {step} --cfg {quote(str(self._supervisor_cfg._pydantic_path))}
_airflow_supervisor_command {step} --cfg {quote(str(self._cfg._pydantic_path))}
""",
}
else:
Expand Down

0 comments on commit bede7c9

Please sign in to comment.