Hi,
It seems that when BashOperator is called with a shell script (".sh") instead of a simple command like "date" or a python script like "job.py", airflow is giving a jinja template "not found" error.
It seems like a very weird bug so I was reinstalling airflow and trying it with the tutorial project and I can reproduce the bug there as well.
Even stranger, adding a space as the last character in the shell script makes it work with airflow and run correctly without the error!
To reproduce, change the tutorial project BashOperator t2 to a simple shell script that does something simple, like "echo hello world". Remember to make it executable.
t2 = BashOperator(
task_id='sleep',
bash_command="/home/batcher/test.sh", // This fails with template error
#bash_command="/home/batcher/test.sh ", // This works (has a space after)
dag=dag)
Can someone else reproduce?