Nataneljpwd commented on code in PR #61637:
URL: https://github.com/apache/airflow/pull/61637#discussion_r2849753016
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -442,6 +446,11 @@ def __init__(
self.remote_pod: k8s.V1Pod | None = None
self.log_pod_spec_on_failure = log_pod_spec_on_failure
self.on_finish_action = OnFinishAction(on_finish_action)
+
+ self.delete_pods_in_phase = (
+ self._validate_delete_pods_in_phase(delete_pods_in_phase) if
delete_pods_in_phase else None
Review Comment:
Looks weird
Why not
```python
delete_pods_in_phase if _validate_delete_pods_in_phase(delete_pods_in_phase)
else None
```
--
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]