Skip to content

Commit d835fd2

Browse files
committed
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 <[email protected]>
1 parent 1fbd703 commit d835fd2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/sandbox/controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ func (c *controllerLocal) Status(ctx context.Context, sandboxID string, verbose
271271
SandboxID: resp.GetSandboxID(),
272272
Pid: resp.GetPid(),
273273
State: resp.GetState(),
274-
ExitedAt: resp.GetCreatedAt().AsTime(),
274+
Info: resp.GetInfo(),
275+
CreatedAt: resp.GetCreatedAt().AsTime(),
276+
ExitedAt: resp.GetExitedAt().AsTime(),
275277
Extra: resp.GetExtra(),
276278
}, nil
277279
}

0 commit comments

Comments
 (0)