Skip to content

Commit

Permalink
Add .bash and other extensions to SSHOperator template_ext (#28617)
Browse files Browse the repository at this point in the history
stamixthereal authored Dec 28, 2022
1 parent 76186bb commit 4f006e8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion airflow/providers/ssh/operators/ssh.py
Original file line number Diff line number Diff line change
@@ -63,7 +63,14 @@ class SSHOperator(BaseOperator):
"""

template_fields: Sequence[str] = ("command", "environment", "remote_host")
template_ext: Sequence[str] = (".sh",)
template_ext: Sequence[str] = (
".sh",
".bash",
".csh",
".zsh",
".dash",
".ksh",
)
template_fields_renderers = {
"command": "bash",
"environment": "python",

0 comments on commit 4f006e8

Please sign in to comment.