diff options
author | John Estabrook <jestabro@vyos.io> | 2024-10-07 12:15:44 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2024-10-07 12:15:44 -0500 |
commit | 64196ec5fd90a8caedef88edb9068a32e4e6abfa (patch) | |
tree | 64458ac2666f2871272b646873140cfaba1a9efc /src/conf_mode/system_config-management.py | |
parent | 4d5f2a58bbf5a366c43871ef27b75d31b3b2a114 (diff) | |
download | vyos-1x-64196ec5fd90a8caedef88edb9068a32e4e6abfa.tar.gz vyos-1x-64196ec5fd90a8caedef88edb9068a32e4e6abfa.zip |
config-mgmt: T5976: move commit-confirm revert action to subnode
Diffstat (limited to 'src/conf_mode/system_config-management.py')
-rwxr-xr-x | src/conf_mode/system_config-management.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/system_config-management.py b/src/conf_mode/system_config-management.py index a1ee136cd..8de4e5342 100755 --- a/src/conf_mode/system_config-management.py +++ b/src/conf_mode/system_config-management.py @@ -40,7 +40,8 @@ def get_config(config=None): def verify(mgmt): d = mgmt.config_dict - if d.get('commit_confirm', '') == 'reload' and 'commit_revisions' not in d: + confirm = d.get('commit_confirm', {}) + if confirm.get('action', '') == 'reload' and 'commit_revisions' not in d: raise ConfigError('commit-confirm reload requires non-zero commit-revisions') return |