mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +08:00
[FIX] nil pointer dereference
This commit is contained in:
parent
0cfa50f9bf
commit
80a7443e7b
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user