mirror of
https://github.com/restic/restic.git
synced 2024-12-23 08:16:36 +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
2 changed files with 8 additions and 1 deletions
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 a new issue