You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/05 13:40:39 UTC

[GitHub] [airflow] kaxil commented on pull request #16814: Automatically create section when migrating config

kaxil commented on pull request #16814:
URL: https://github.com/apache/airflow/pull/16814#issuecomment-874122910


   > Previously, if a config is migrated to a new section, the migration code would crash with NoSectionError if the user does not add that section to airflow.cfg after upgrading Airflow. This patch automatically creates an empty section when that happens to avoid Airflow from crashing.
   
   It should not error, as we have deprecations for the configs/sections that are moved:
   
   https://github.com/apache/airflow/blob/b251d22fffad63124eec5246b80035408b543704/airflow/configuration.py#L105-L185
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org