amoghrajesh commented on code in PR #55259:
URL: https://github.com/apache/airflow/pull/55259#discussion_r2325103179
##########
providers/openlineage/src/airflow/providers/openlineage/utils/utils.py:
##########
@@ -842,8 +844,19 @@ def from_masker(cls, other: SecretsMasker) ->
OpenLineageRedactor:
instance = cls()
instance.patterns = other.patterns
instance.replacer = other.replacer
+ for attr in ["sensitive_variables_fields", "min_length_to_mask",
"secret_mask_adapter"]:
+ if hasattr(other, attr):
+ setattr(instance, attr, getattr(other, attr))
return instance
+ def _should_hide_value_for_key(self, name):
+ """Compatibility helper for should_hide_value_for_key across Airflow
versions."""
+ try:
+ return self.should_hide_value_for_key(name)
+ except AttributeError:
+ # fallback to module level function
+ return should_hide_value_for_key(name)
Review Comment:
it's between line 101 - 122
--
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]