Migrate: pick latest instead of oldest snapshot with --latest-only (#1420)

Fix #1414
This commit is contained in:
Robert Schindler authored and GitHub committed 2021-10-19 08:56:35 -07:00
1 parent 3a40cc621f
commit 3e43f8e76f
1 file changed
+1 -1
+1 -1
View File
@@ -291,7 +291,7 @@ func (c *commandSnapshotMigrate) migrateSingleSourceSnapshot(ctx context.Context
func (c *commandSnapshotMigrate) filterSnapshotsToMigrate(s []*snapshot.Manifest) []*snapshot.Manifest {
if c.migrateLatestOnly && len(s) > 0 {
s = s[0:1]
s = s[len(s)-1:]
}
return s