mirror of
https://github.com/restic/restic.git
synced 2025-10-09 15:53:18 +00:00
restic: change Find to return ids
That way consumers no longer have to manually convert the returned name to an id.
This commit is contained in:
@@ -119,7 +119,7 @@ func SearchKey(ctx context.Context, s *Repository, password string, maxKeys int,
|
||||
id, err := restic.Find(ctx, s.Backend(), restic.KeyFile, keyHint)
|
||||
|
||||
if err == nil {
|
||||
key, err := OpenKey(ctx, s, id, password)
|
||||
key, err := OpenKey(ctx, s, id.String(), password)
|
||||
|
||||
if err == nil {
|
||||
debug.Log("successfully opened hinted key %v", id)
|
||||
|
Reference in New Issue
Block a user