From d6d559ea16cb9775e7ba89de75b192bdc73c6a32 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Mon, 13 Aug 2018 09:56:42 -0700 Subject: [PATCH] Add notready state to containers --- mapper/container_status.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mapper/container_status.go b/mapper/container_status.go index 96ea2183..980ce063 100644 --- a/mapper/container_status.go +++ b/mapper/container_status.go @@ -48,8 +48,14 @@ func checkStatus(containerStates map[string]containerState, containerStatus []ma s.transitioning = "error" } case "running": - s.state = "running" - s.transitioning = "no" + ready := convert.ToBool(status["ready"]) + if ready { + s.state = "running" + s.transitioning = "no" + } else { + s.state = "notready" + s.transitioning = "yes" + } case "waiting": s.state = "waiting" s.transitioning = "yes"