Skip to content

Commit 36e4c8e

Browse files
authored
Merge pull request #3420 from crosbymichael/sn-regression
Fix regression from #3403 with snapshot cmd
2 parents b5d0c78 + ce0d248 commit 36e4c8e

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)