mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 04:45:15 +00:00
Merge pull request #4657 from numerigraphe/fix-key-add-id
Properly report the ID of newly added keys
This commit is contained in:
commit
eaf9659efc
7
changelog/unreleased/issue-4656
Normal file
7
changelog/unreleased/issue-4656
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Bugfix: Properly report the ID of newly added keys
|
||||||
|
|
||||||
|
`restic key add` now reports the ID of a newly added key. This simplifies
|
||||||
|
selecting a specific key using the `--key-hint key` option.
|
||||||
|
|
||||||
|
https://github.com/restic/restic/issues/4656
|
||||||
|
https://github.com/restic/restic/pull/4657
|
@ -141,7 +141,7 @@ func addKey(ctx context.Context, repo *repository.Repository, gopts GlobalOption
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
Verbosef("saved new key as %s\n", id)
|
Verbosef("saved new key with ID %s\n", id.ID())
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user