You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/01/06 17:46:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17009051#comment-17009051 ] 

ASF GitHub Bot commented on AIRFLOW-5566:
-----------------------------------------

stale[bot] commented on pull request #6270: [AIRFLOW-5566] Fix false positive deprecation warning
URL: https://github.com/apache/airflow/pull/6270
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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