Allow containerserver to match containers by id prefix or name

Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
Ryan Cole 2017-07-31 19:23:20 -04:00
parent fa6e2d81f9
commit 9ada0eb4e5
7 changed files with 81 additions and 29 deletions

View file

@ -21,7 +21,7 @@ const (
// ContainerStatus returns status of the container.
func (s *Server) ContainerStatus(ctx context.Context, req *pb.ContainerStatusRequest) (*pb.ContainerStatusResponse, error) {
logrus.Debugf("ContainerStatusRequest %+v", req)
c, err := s.getContainerFromRequest(req.ContainerId)
c, err := s.GetContainerFromRequest(req.ContainerId)
if err != nil {
return nil, err
}