From 2a2cc41f1d7764b78124b94bfaca571c5b0a3bf3 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 24 Jun 2019 16:47:58 -0700 Subject: [PATCH] backups: Handle SSH keys for old stored repositories - Assume that their SSH public keys are not unverified. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Joseph Nuthalapati --- plinth/modules/backups/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/backups/forms.py b/plinth/modules/backups/forms.py index c89cdc32c..2b101eed6 100644 --- a/plinth/modules/backups/forms.py +++ b/plinth/modules/backups/forms.py @@ -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