Skip to content

Commit

Permalink
Sandbox: Correct/add some fields to Status()
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit d835fd2)
Signed-off-by: Danny Canter <danny@dcantah.dev>
  • Loading branch information
dcantah committed Mar 16, 2023
1 parent ce68e8e commit cf2e454
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/sandbox/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,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
}
Expand Down

0 comments on commit cf2e454

Please sign in to comment.