diff options
author | Christian Breunig <christian@breunig.cc> | 2025-05-29 14:29:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-29 14:29:56 +0200 |
commit | 3e5eb3a4bd3935a7473b84558691f77793045021 (patch) | |
tree | a3b88d3eadd0299f1882e3f46d9b5c27cb8b1721 /python | |
parent | 84f1263334de5dcea30fadf02451e8a73e989414 (diff) | |
parent | b22062658ca2a78755bbe4b09bebe843bf0342ed (diff) | |
download | vyos-1x-3e5eb3a4bd3935a7473b84558691f77793045021.tar.gz vyos-1x-3e5eb3a4bd3935a7473b84558691f77793045021.zip |
Merge pull request #4531 from jestabro/commit-confirm-reboot
config-mgmt: T7500: fix typo preventing commit-confirm hard rollback
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/config_mgmt.py | 4 |
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']): |