You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (Jira)" <ji...@apache.org> on 2019/09/05 14:47:00 UTC

[jira] [Commented] (AIRFLOW-5410) AirflowConfigParser no longer find conf entries with capitalized letters

    [ https://issues.apache.org/jira/browse/AIRFLOW-5410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16923493#comment-16923493 ] 

Ash Berlin-Taylor commented on AIRFLOW-5410:
--------------------------------------------

Sorry yes, I forgot that people could put custom sections and entries in the airflow.cfg. 

> AirflowConfigParser no longer find conf entries with capitalized letters
> ------------------------------------------------------------------------
>
>                 Key: AIRFLOW-5410
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5410
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: configuration
>    Affects Versions: 1.10.5
>            Reporter: Qian Yu
>            Priority: Major
>
> The following commit changed the behavior of configuration parsing globally (although the commit message only says "kubernetes"):
>  AIRFLOW-4316 Support setting kubernetes_environment_variables config section from env var (#5668)
>  
> This used to work:
> {code:python}
> [mysection]
> Guess = "test"{code}
> {code:python}
> assert conf.get("mysection", "Guess")  == "test"{code}
> It stopped working since 1.10.5. It'll break because the key "Guess" is not found. To get around the issue, "Guess" needs to be changed to all lower case
>  "guess". This change can cause surprises because it is not obvious from the changelog this commit changed conf parsing everywhere.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)