airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgardo Vega <edgardo.v...@gmail.com>
Subject BashOperator Templated Command with Quotes
Date Tue, 14 Mar 2017 01:34:56 GMT
I am trying to template a bash command and I need to have quotes in the
command so
bash_command= 'command opts="startTime={{ts}}
endTime={{ (execution_date + macros.timedelta(hours=1)).isoformat() }}"'

but jinja treats quotes as a literals.

Any workaround to this problem, that this noob hasn't figured out?

-- 
Cheers,

Edgardo

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message