You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ian Friedman (Jira)" <ji...@apache.org> on 2019/10/01 22:30:00 UTC

[jira] [Assigned] (AIRFLOW-5566) Invalid deprecation warning for airflow home specification within config file

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

Ian Friedman reassigned AIRFLOW-5566:
-------------------------------------

    Assignee: Ian Friedman

> Invalid deprecation warning for airflow home specification within config file
> -----------------------------------------------------------------------------
>
>                 Key: AIRFLOW-5566
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5566
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: configuration
>    Affects Versions: 1.10.5
>            Reporter: Ian Friedman
>            Assignee: Ian Friedman
>            Priority: Minor
>
> [This deprecation warning|https://github.com/apache/airflow/blob/4d4fda75333b1e6ae4e99b407ab2b1edc0d139d8/airflow/configuration.py#L551-L568] is run regardless of whether an 'airflow_home' entry exists in the config file when the 'AIRFLOW_HOME' environment variables are set.
> Traceback:
> [config entry check | https://github.com/apache/airflow/blob/4d4fda75333b1e6ae4e99b407ab2b1edc0d139d8/airflow/configuration.py#L551] -> [config.has_option(...)|https://github.com/apache/airflow/blob/4d4fda75333b1e6ae4e99b407ab2b1edc0d139d8/airflow/configuration.py#L296-L304] -> [get(...)| https://github.com/apache/airflow/blob/4d4fda75333b1e6ae4e99b407ab2b1edc0d139d8/airflow/configuration.py#L214-L267]
> in get:
> {code:python}
>         option = self._get_env_var_option(section, key)
>         if option is not None:
>             return option
> {code}
> 'get' returns True, then 'has_option' returns True, which triggers the warning



--
This message was sent by Atlassian Jira
(v8.3.4#803005)