diff options
author | John Estabrook <jestabro@vyos.io> | 2023-09-05 13:57:22 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-09-08 08:40:32 -0500 |
commit | c35a66f327b09686344c63db2da8634b55f18d79 (patch) | |
tree | fdafe3cb46dd82b76afe0f44d4b05e8a8babde99 /python/vyos | |
parent | c1a078e5e4dd5980715985958b494eca08651893 (diff) | |
download | vyos-1x-c35a66f327b09686344c63db2da8634b55f18d79.tar.gz vyos-1x-c35a66f327b09686344c63db2da8634b55f18d79.zip |
config-mgmt: T5353: after updated save-config, one can include init rev
The legacy config-mgmt/save-config tools had an abiding bug that would
raise an error if comparing/reading the init archive; this is no longer
an issue.
(cherry picked from commit 52e4b4431ef440f0cffb570ca61c428c78699ee6)
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/config_mgmt.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py index 9fad000e8..9caf6da2b 100644 --- a/python/vyos/config_mgmt.py +++ b/python/vyos/config_mgmt.py @@ -526,9 +526,8 @@ Proceed ?''' return len(l) def _check_revision_number(self, rev: int) -> bool: - # exclude init revision: maxrev = self._get_number_of_revisions() - if not 0 <= rev < maxrev - 1: + if not 0 <= rev < maxrev: return False return True |