summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-05-28 18:41:52 -0500
committerJohn Estabrook <jestabro@vyos.io>2025-05-28 18:45:11 -0500
commitb22062658ca2a78755bbe4b09bebe843bf0342ed (patch)
treeef9ecf9aca844d44765d75d00f9332e4a2a41dc3 /python
parente604e68a5a77718a25b60737dcb9699b84c8e34b (diff)
downloadvyos-1x-b22062658ca2a78755bbe4b09bebe843bf0342ed.tar.gz
vyos-1x-b22062658ca2a78755bbe4b09bebe843bf0342ed.zip
config-mgmt: T7500: fix typo preventing commit-confirm hard rollback
Diffstat (limited to 'python')
-rw-r--r--python/vyos/config_mgmt.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py
index dd8910afb..308eb1cdb 100644
--- a/python/vyos/config_mgmt.py
+++ b/python/vyos/config_mgmt.py
@@ -151,7 +151,9 @@ class ConfigMgmt:
self.num_revisions = 0
self.locations = d.get('commit_archive', {}).get('location', [])
self.source_address = d.get('commit_archive', {}).get('source_address', '')
- self.reboot_unconfirmed = bool(d.get('commit_confirm') == 'reboot')
+ self.reboot_unconfirmed = bool(
+ d.get('commit_confirm', {}).get('action') == 'reboot'
+ )
self.config_dict = d
if config.exists(['system', 'host-name']):