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/09/27 21:15:00 UTC

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

Ian Friedman created AIRFLOW-5566:
-------------------------------------

             Summary: 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


[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)