From d835fd2a3a05064585efbd8624ffff2a2fad8e09 Mon Sep 17 00:00:00 2001 From: Danny Canter Date: Mon, 13 Mar 2023 04:04:17 -0700 Subject: [PATCH] Sandbox: Correct/add some fields to Status() CreatedAt was being used as the ExitedAt timestamp, and Info from the response wasn't being set on the response. Signed-off-by: Danny Canter --- plugins/sandbox/controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/sandbox/controller.go b/plugins/sandbox/controller.go index e85f0739a..7c613f954 100644 --- a/plugins/sandbox/controller.go +++ b/plugins/sandbox/controller.go @@ -271,7 +271,9 @@ func (c *controllerLocal) Status(ctx context.Context, sandboxID string, verbose SandboxID: resp.GetSandboxID(), Pid: resp.GetPid(), State: resp.GetState(), - ExitedAt: resp.GetCreatedAt().AsTime(), + Info: resp.GetInfo(), + CreatedAt: resp.GetCreatedAt().AsTime(), + ExitedAt: resp.GetExitedAt().AsTime(), Extra: resp.GetExtra(), }, nil }