potiuk commented on code in PR #29926:
URL: https://github.com/apache/airflow/pull/29926#discussion_r1196883874


##########
airflow/configuration.py:
##########
@@ -1548,10 +1548,7 @@ def initialize_config() -> AirflowConfigParser:
         if local_conf.getboolean("core", "unit_test_mode"):
             local_conf.load_test_config()
 
-    # Make it no longer a proxy variable, just set it to an actual string
-    global WEBSERVER_CONFIG
-    WEBSERVER_CONFIG = AIRFLOW_HOME + "/webserver_config.py"
-
+    WEBSERVER_CONFIG = local_conf.get("webserver", "config_file")

Review Comment:
   Needs formatting, but I think we need: 
   
   ```suggestion
       WEBSERVER_CONFIG = local_conf.get("webserver", "config_file", 
                      fallback= AIRFLOW_HOME + "/webserver_config.py")
   ```
   
   Otherwise it will fail for those who have the old config file



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to