Lee-W commented on code in PR #64209:
URL: https://github.com/apache/airflow/pull/64209#discussion_r3008680167
##########
shared/configuration/src/airflow_shared/configuration/parser.py:
##########
@@ -1521,6 +1594,17 @@ def read_dict( # type: ignore[override]
"""
super().read_dict(dictionary=dictionary, source=source)
+ def _has_section_in_any_defaults(self, section: str) -> bool:
+ """Check if section exists in core defaults or provider fallback
defaults."""
+ if self._default_values.has_section(section):
+ return True
+ if self._use_providers_configuration:
+ if
self._provider_cfg_config_fallback_default_values.has_section(section):
+ return True
+ if
self._provider_metadata_config_fallback_default_values.has_section(section):
+ return True
Review Comment:
```suggestion
return (
self._provider_cfg_config_fallback_default_values.has_section(section)
or
self._provider_metadata_config_fallback_default_values.has_section(section)
)
```
nit
--
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]