Merge pull request #438 from yanxuean/import-lease

add lease for importer
This commit is contained in:
Lantao Liu
2017-11-29 10:18:37 -08:00
committed by GitHub
2 changed files with 14 additions and 32 deletions

View File

@@ -38,7 +38,7 @@ func (c *criContainerdService) LoadImage(ctx context.Context, r *api.LoadImageRe
if err != nil {
return nil, fmt.Errorf("failed to open file: %v", err)
}
repoTags, err := importer.Import(ctx, c.client.ContentStore(), c.client.ImageService(), f)
repoTags, err := importer.Import(ctx, c.client, f)
if err != nil {
return nil, fmt.Errorf("failed to import image: %v", err)
}