airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ash Berlin-Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-3178) `airflow run` config doens't cope with % in config values.
Date Tue, 09 Oct 2018 20:24:00 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-3178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ash Berlin-Taylor updated AIRFLOW-3178:
---------------------------------------
    Description: 
ConfigParser uses %-signs for interpolation, so if you need a literal % in airflow.cfg it
needs to be  escaped in by specifying them as {{%%}}), but by the time they are written out
to the temporary config that is passed to `airflow run` they escaping is lost.

This is also true for configuration via environment variables, where {{%}} doesn't need to
be escaped at all, but is included (sometimes needlessly) in the config un-escaped.


  was:
Even if percent sings are correctly escaped in the airflow.cfg (by specifying them as {{%%}})
by the time they are written out to the temporary config that is passed to `airflow run` they
escaping is lost.

This is also true for configuration via environment variables, where {{%}} doesn't need to
be escaped at all, but is included (sometimes needlessly) in the config un-escaped.



> `airflow run` config doens't cope with % in config values.
> ----------------------------------------------------------
>
>                 Key: AIRFLOW-3178
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3178
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Ash Berlin-Taylor
>            Priority: Major
>             Fix For: 1.10.1
>
>
> ConfigParser uses %-signs for interpolation, so if you need a literal % in airflow.cfg
it needs to be  escaped in by specifying them as {{%%}}), but by the time they are written
out to the temporary config that is passed to `airflow run` they escaping is lost.
> This is also true for configuration via environment variables, where {{%}} doesn't need
to be escaped at all, but is included (sometimes needlessly) in the config un-escaped.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message