backups: Handle SSH keys for old stored repositories

- Assume that their SSH public keys are not unverified.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Sunil Mohan Adapa 2019-06-24 16:47:58 -07:00 committed by Joseph Nuthalapati
parent 661a00198e
commit 2a2cc41f1d
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -57,7 +57,7 @@ def _get_repository_choices():
choices = [('root', ROOT_REPOSITORY_NAME)]
storages = network_storage.get_storages()
for storage in storages.values():
if storage['verified']:
if storage.get('verified'):
choices += [(storage['uuid'], storage['path'])]
return choices