Remove get function from rootfs
The service can use the snapshotter directly to get the rootfs. Removed debug line for mount response. Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
b1bc82726f
commit
212efa578a
3 changed files with 1 additions and 6 deletions
|
@ -75,7 +75,7 @@ func (s *Service) Prepare(ctx context.Context, ir *rootfsapi.PrepareRequest) (*r
|
|||
}
|
||||
|
||||
func (s *Service) Mounts(ctx context.Context, mr *rootfsapi.MountsRequest) (*rootfsapi.MountResponse, error) {
|
||||
mounts, err := rootfs.GetRootFS(ctx, mr.Name, s.snapshotter)
|
||||
mounts, err := s.snapshotter.Mounts(ctx, mr.Name)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue