mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 04:07:51 +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:
|
case state.Terminated != nil:
|
||||||
podContainer.State = "Terminated"
|
podContainer.State = "Terminated"
|
||||||
if state.Terminated.Reason != "" {
|
if state.Terminated.Reason != "" {
|
||||||
podContainer.Reason = state.Waiting.Reason
|
podContainer.Reason = state.Terminated.Reason
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
podContainer.State = "Waiting"
|
podContainer.State = "Waiting"
|
||||||
|
Loading…
Reference in New Issue
Block a user