From 52e4b4431ef440f0cffb570ca61c428c78699ee6 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 5 Sep 2023 13:57:22 -0500 Subject: 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. --- python/vyos/config_mgmt.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3