Skip to content

Commit ce0d248

Browse files
committed
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 <[email protected]>
1 parent d6be45e commit ce0d248

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ func (c *Client) ContentStore() content.Store {
557557

558558
// SnapshotService returns the underlying snapshotter for the provided snapshotter name
559559
func (c *Client) SnapshotService(snapshotterName string) snapshots.Snapshotter {
560+
snapshotterName, err := c.resolveSnapshotterName(context.Background(), snapshotterName)
561+
if err != nil {
562+
snapshotterName = DefaultSnapshotter
563+
}
560564
if c.snapshotters != nil {
561565
return c.snapshotters[snapshotterName]
562566
}

0 commit comments

Comments
 (0)