Skip to content

Commit fff0e58

Browse files
committed
k8s: use our internal get_pod fn
1 parent bc7fbd1 commit fff0e58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/warnet/k8s.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def get_mission(mission: str) -> list[V1Pod]:
8787

8888
def get_pod_exit_status(pod_name):
8989
try:
90-
sclient = get_static_client()
91-
pod = sclient.read_namespaced_pod(name=pod_name, namespace=get_default_namespace())
90+
pod = get_pod(pod_name)
9291
for container_status in pod.status.container_statuses:
9392
if container_status.state.terminated:
9493
return container_status.state.terminated.exit_code

0 commit comments

Comments
 (0)