Add id to state command to return single container
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
58c5eb5ecb
commit
76d69b4ed8
8 changed files with 100 additions and 78 deletions
|
@ -172,6 +172,7 @@ func (s *apiServer) ListCheckpoint(ctx context.Context, r *types.ListCheckpointR
|
|||
|
||||
func (s *apiServer) State(ctx context.Context, r *types.StateRequest) (*types.StateResponse, error) {
|
||||
e := supervisor.NewEvent(supervisor.GetContainerEventType)
|
||||
e.ID = r.Id
|
||||
s.sv.SendEvent(e)
|
||||
if err := <-e.Err; err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue