ephraimbuddy commented on code in PR #60065:
URL: https://github.com/apache/airflow/pull/60065#discussion_r2661270754
##########
airflow-core/src/airflow/serialization/serialized_objects.py:
##########
@@ -1121,7 +1121,10 @@ def _serialize_node(cls, op: SdkOperator) -> dict[str,
Any]:
)
value = getattr(op, template_field, None)
if not cls._is_excluded(value, template_field, op):
- serialize_op[template_field] =
serialize_template_field(value, template_field)
+ if callable(value):
+ serialize_op[template_field] = cls.serialize(value)
Review Comment:
This is good however, secrets won't be redacted. Can you check if you can
work on serialize_template_field to handle this case? That way any secret here
would be redacted
--
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]