[
https://issues.apache.org/jira/browse/AIRFLOW-5566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16942091#comment-16942091
]
Ian Friedman commented on AIRFLOW-5566:
---------------------------------------
Will do
> 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
> 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)