hussein-awala commented on code in PR #47406:
URL: https://github.com/apache/airflow/pull/47406#discussion_r1989969697
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/pod_generator.py:
##########
@@ -504,7 +504,7 @@ def deserialize_model_file(path: str) -> k8s.V1Pod:
pod = yaml.safe_load(stream)
else:
pod = None
- log.warning("Model file %s does not exist", path)
+ log.warning("Model file %s does not exist or is not defined. Using
default model file.", path)
Review Comment:
How could this not be defined? I see that we have a check before call the
method:
```python
if pod_template_file:
self.ud_pod = self.deserialize_model_file(pod_template_file)
else:
self.ud_pod = pod
```
--
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]