change-passphrase: print key location

This commit is contained in:
Marian Beermann 2017-01-03 13:00:37 +01:00
parent 7519bf8100
commit 4b9a9f9b5e
1 changed files with 3 additions and 0 deletions

View File

@ -182,6 +182,9 @@ class Archiver:
return EXIT_ERROR
key.change_passphrase()
logger.info('Key updated')
if hasattr(key, 'find_key'):
# print key location to make backing it up easier
logger.info('Key location: %s', key.find_key())
return EXIT_SUCCESS
@with_repository(lock=False, exclusive=False, manifest=False, cache=False)