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

Method validate

airflow/configuration.py:197–216  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

195 self.is_validated = False
196
197 def validate(self):
198
199 self._validate_config_dependencies()
200
201 for section, replacement in self.deprecated_values.items():
202 for name, info in replacement.items():
203 old, new, version = info
204 current_value = self.get(section, name, fallback=None)
205 if self._using_old_value(old, current_value):
206 new_value = re.sub(old, new, current_value)
207 self._update_env_var(section=section, name=name, new_value=new_value)
208 self._create_future_warning(
209 name=name,
210 section=section,
211 current_value=current_value,
212 new_value=new_value,
213 version=version,
214 )
215
216 self.is_validated = True
217
218 def _validate_config_dependencies(self):
219 """

Callers 2

initialize_configFunction · 0.95
make_configMethod · 0.95

Calls 5

getMethod · 0.95
_using_old_valueMethod · 0.95
_update_env_varMethod · 0.95

Tested by 1

make_configMethod · 0.76