Move DefaultSnapshotter constants
Move the DefaultSnapshotter constants to the defaults package. Fixes issue #8226. Signed-off-by: James Jenkins <James.Jenkins@ibm.com>
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
|
||||
containerd "github.com/containerd/containerd/v2/client"
|
||||
"github.com/containerd/containerd/v2/cmd/ctr/commands"
|
||||
"github.com/containerd/containerd/v2/defaults"
|
||||
"github.com/containerd/containerd/v2/errdefs"
|
||||
"github.com/containerd/containerd/v2/leases"
|
||||
"github.com/containerd/containerd/v2/mount"
|
||||
@@ -69,7 +70,7 @@ When you are done, use the unmount command.
|
||||
|
||||
snapshotter := context.String("snapshotter")
|
||||
if snapshotter == "" {
|
||||
snapshotter = containerd.DefaultSnapshotter
|
||||
snapshotter = defaults.DefaultSnapshotter
|
||||
}
|
||||
|
||||
ctx, done, err := client.WithLease(ctx,
|
||||
|
||||
Reference in New Issue
Block a user