summaryrefslogtreecommitdiff
path: root/src/conf_mode/system_config-management.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-12-02 03:04:40 -0600
committerGitHub <noreply@github.com>2024-12-02 11:04:40 +0200
commit29cc3d790fa690356016a7df21ec75b12b84cb3c (patch)
tree05f038c1cc41bd94e2d448c515976fa2c0ab4363 /src/conf_mode/system_config-management.py
parent0808301358262703cb7c8c0b752ba67621a0bfec (diff)
downloadvyos-1x-29cc3d790fa690356016a7df21ec75b12b84cb3c.tar.gz
vyos-1x-29cc3d790fa690356016a7df21ec75b12b84cb3c.zip
config-mgmt: T6925: return from verify function on config object None (#4213)
Diffstat (limited to 'src/conf_mode/system_config-management.py')
-rwxr-xr-xsrc/conf_mode/system_config-management.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/system_config-management.py b/src/conf_mode/system_config-management.py
index 8de4e5342..a3ce66512 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: