This commit is contained in:
Mrunal Patel 2016-11-22 01:30:59 +00:00 committed by GitHub
commit 13dcadad49

View file

@ -29,7 +29,14 @@ func (s *Server) ImageStatus(ctx context.Context, req *pb.ImageStatusRequest) (*
// TODO // TODO
// containers/storage will take care of this by looking inside /var/lib/ocid/images // containers/storage will take care of this by looking inside /var/lib/ocid/images
// and getting the image status // and getting the image status
return &pb.ImageStatusResponse{}, nil
// HACK: Return fake status for now as the image pull actually happens in create container.
image := req.GetImage().GetImage()
return &pb.ImageStatusResponse{
Image: &pb.Image{
Id: &image,
},
}, nil
} }
// PullImage pulls a image with authentication config. // PullImage pulls a image with authentication config.