From 80a7443e7b45fd509833237717c0554fd09eec86 Mon Sep 17 00:00:00 2001 From: GLYASAI Date: Mon, 26 Aug 2019 12:53:12 +0800 Subject: [PATCH] [FIX] nil pointer dereference --- worker/server/pod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/server/pod.go b/worker/server/pod.go index 89134bbf6..0c37d451b 100644 --- a/worker/server/pod.go +++ b/worker/server/pod.go @@ -162,7 +162,7 @@ func describeStatus(state corev1.ContainerState, podContainer *pb.PodContainer) case state.Terminated != nil: podContainer.State = "Terminated" if state.Terminated.Reason != "" { - podContainer.Reason = state.Waiting.Reason + podContainer.Reason = state.Terminated.Reason } default: podContainer.State = "Waiting"