Commit 7724435d authored by nuwang's avatar nuwang
Browse files

Get exitCode from correct dict entry

parent eeb4d259
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -956,7 +956,7 @@ class KubernetesJobRunner(AsynchronousJobRunner):
        if (
            pod
            and "terminated" in pod["status"]["containerStatuses"][0]["state"]
            and pod["status"]["containerStatuses"][0]["state"].get("exitCode")
            and pod["status"]["containerStatuses"][0]["state"]["terminated"].get("exitCode")
        ):
            return True