uranusjr commented on code in PR #65407:
URL: https://github.com/apache/airflow/pull/65407#discussion_r3152704794
##########
airflow-core/src/airflow/serialization/serialized_objects.py:
##########
@@ -491,7 +491,11 @@ def serialize(
)
elif isinstance(var, list):
return [cls.serialize(v, strict=strict) for v in var]
- elif var.__class__.__name__ == "V1Pod" and _has_kubernetes() and
isinstance(var, k8s.V1Pod):
+ elif (
+ var.__class__.__name__ == "V1Pod"
+ and _has_kubernetes(attempt_import=True)
Review Comment:
Ah it’s already asked below.
--
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]