From ce0d2489acdcd93ef6d213d855fec1f2e2cb22b8 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Tue, 16 Jul 2019 19:24:24 +0000 Subject: [PATCH] Fix regiression from #3403 with snapshot cmd The snapshot command calls the snapshotter service directly, therefore, the name must be resolved. Signed-off-by: Michael Crosby --- client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.go b/client.go index be99e00b9..680e5d06b 100644 --- a/client.go +++ b/client.go @@ -557,6 +557,10 @@ func (c *Client) ContentStore() content.Store { // SnapshotService returns the underlying snapshotter for the provided snapshotter name func (c *Client) SnapshotService(snapshotterName string) snapshots.Snapshotter { + snapshotterName, err := c.resolveSnapshotterName(context.Background(), snapshotterName) + if err != nil { + snapshotterName = DefaultSnapshotter + } if c.snapshotters != nil { return c.snapshotters[snapshotterName] }