From 25010493d15db09186c2e16b9720477e9d74b604 Mon Sep 17 00:00:00 2001 From: Julio-Oliveira-Encora Date: Tue, 4 Jun 2024 14:59:54 -0300 Subject: [PATCH] Fixed error when the active Config is deleted and rest only one to restore. --- netbox/core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/core/views.py b/netbox/core/views.py index 5a65c5755..ded49c0b8 100644 --- a/netbox/core/views.py +++ b/netbox/core/views.py @@ -224,7 +224,7 @@ class ConfigRevisionRestoreView(ContentTypePermissionRequiredMixin, View): for param in PARAMS: params.append(( param.name, - current_config.data.get(param.name, None), + current_config.data.get(param.name, None) if current_config else None, candidate_config.data.get(param.name, None) ))