Respect default snapshotter label
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
This commit is contained in:
4
image.go
4
image.go
@@ -108,7 +108,7 @@ func (i *image) Config(ctx context.Context) (ocispec.Descriptor, error) {
|
||||
}
|
||||
|
||||
func (i *image) IsUnpacked(ctx context.Context, snapshotterName string) (bool, error) {
|
||||
sn, err := i.client.getSnapshotter(snapshotterName)
|
||||
sn, err := i.client.getSnapshotter(ctx, snapshotterName)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
@@ -149,7 +149,7 @@ func (i *image) Unpack(ctx context.Context, snapshotterName string) error {
|
||||
chain []digest.Digest
|
||||
unpacked bool
|
||||
)
|
||||
sn, err := i.client.getSnapshotter(snapshotterName)
|
||||
sn, err := i.client.getSnapshotter(ctx, snapshotterName)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user