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 authored and Joseph Nuthalapati committed 2019-07-03 12:44:01 +05:30
1 parent 661a00198e
commit 2a2cc41f1d
1 file changed
+1 -1
+1 -1
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