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 <danny@dcantah.dev>
This commit is contained in:
parent
1fbd703741
commit
d835fd2a3a
@ -271,7 +271,9 @@ func (c *controllerLocal) Status(ctx context.Context, sandboxID string, verbose
|
|||||||
SandboxID: resp.GetSandboxID(),
|
SandboxID: resp.GetSandboxID(),
|
||||||
Pid: resp.GetPid(),
|
Pid: resp.GetPid(),
|
||||||
State: resp.GetState(),
|
State: resp.GetState(),
|
||||||
ExitedAt: resp.GetCreatedAt().AsTime(),
|
Info: resp.GetInfo(),
|
||||||
|
CreatedAt: resp.GetCreatedAt().AsTime(),
|
||||||
|
ExitedAt: resp.GetExitedAt().AsTime(),
|
||||||
Extra: resp.GetExtra(),
|
Extra: resp.GetExtra(),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user