iamvvekverma commented on code in PR #59948:
URL: https://github.com/apache/airflow/pull/59948#discussion_r2656320140
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/utils/pod_manager.py:
##########
@@ -808,9 +809,20 @@ def read_pod_events(self, pod: V1Pod, resource_version:
str | None = None) -> Co
def read_pod(self, pod: V1Pod) -> V1Pod:
"""Read POD information."""
try:
- return self._client.read_namespaced_pod(pod.metadata.name,
pod.metadata.namespace)
- except HTTPError as e:
- raise KubernetesApiException(f"There was an error reading the
kubernetes API: {e}")
+ return self._client.read_namespaced_pod(
+ pod.metadata.name,
+ pod.metadata.namespace,
+ )
Review Comment:
Thanks for pointing that out — you’re right. There was no functional change
intended in those lines. I’ll clean this up and remove the unnecessary
formatting change.
--
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]