From 29cc3d790fa690356016a7df21ec75b12b84cb3c Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 2 Dec 2024 03:04:40 -0600 Subject: [PATCH] config-mgmt: T6925: return from verify function on config object None (#4213) --- src/conf_mode/system_config-management.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/conf_mode/system_config-management.py b/src/conf_mode/system_config-management.py index 8de4e53429..a3ce665120 100755 --- a/src/conf_mode/system_config-management.py +++ b/src/conf_mode/system_config-management.py @@ -39,6 +39,9 @@ def get_config(config=None): def verify(mgmt): + if mgmt is None: + return + d = mgmt.config_dict confirm = d.get('commit_confirm', {}) if confirm.get('action', '') == 'reload' and 'commit_revisions' not in d: