MCPcopy
hub / github.com/apache/airflow / get

Method get

airflow/configuration.py:321–345  ·  view source on GitHub ↗
(self, section, key, **kwargs)

Source from the content-addressed store, hash-verified

319 return None
320
321 def get(self, section, key, **kwargs):
322 section = str(section).lower()
323 key = str(key).lower()
324
325 deprecated_section, deprecated_key, _ = self.deprecated_options.get(
326 (section, key), (None, None, None)
327 )
328
329 option = self._get_environment_variables(deprecated_key, deprecated_section, key, section)
330 if option is not None:
331 return option
332
333 option = self._get_option_from_config_file(deprecated_key, deprecated_section, key, kwargs, section)
334 if option is not None:
335 return option
336
337 option = self._get_option_from_commands(deprecated_key, deprecated_section, key, section)
338 if option is not None:
339 return option
340
341 option = self._get_option_from_secrets(deprecated_key, deprecated_section, key, section)
342 if option is not None:
343 return option
344
345 return self._get_option_from_default_config(section, key, **kwargs)
346
347 def _get_option_from_default_config(self, section, key, **kwargs):
348 # ...then the default config

Callers 15

validateMethod · 0.95
getbooleanMethod · 0.95
getintMethod · 0.95
getfloatMethod · 0.95
has_optionMethod · 0.95
initialize_configFunction · 0.95
resolve_logs_folderFunction · 0.95
test_remove_optionMethod · 0.95

Tested by 6

resolve_logs_folderFunction · 0.76
test_remove_optionMethod · 0.76
test_command_from_envMethod · 0.76