Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-5566

Invalid deprecation warning for airflow home specification within config file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.10.5
    • Fix Version/s: None
    • Component/s: configuration
    • Labels:
      None

      Description

      This deprecation warning 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 -> config.has_option(...) -> get(...)
      in get:

              option = self._get_env_var_option(section, key)
              if option is not None:
                  return option
      

      'get' returns True, then 'has_option' returns True, which triggers the warning

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                friedman Ian Friedman
                Reporter:
                friedman Ian Friedman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: