summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-12-09 17:59:36 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-12-11 18:16:59 +0000
commit9244f8960bc5789427ee10dfdc994a62dbaa8cf4 (patch)
tree05972f4455196f62061547b45c28da51c00a4c89 /python
parent5b2ee47e85b536800897e4f4a475ca3167238254 (diff)
downloadvyos-1x-9244f8960bc5789427ee10dfdc994a62dbaa8cf4.tar.gz
vyos-1x-9244f8960bc5789427ee10dfdc994a62dbaa8cf4.zip
T5812: Fix for rollback check max revision number
(cherry picked from commit f019ed91b5444d2f446ca4f7332602c03a074190)
Diffstat (limited to 'python')
-rw-r--r--python/vyos/config_mgmt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py
index df7240c88..950f14d4f 100644
--- a/python/vyos/config_mgmt.py
+++ b/python/vyos/config_mgmt.py
@@ -233,7 +233,7 @@ Proceed ?'''
msg = ''
if not self._check_revision_number(rev):
- msg = f'Invalid revision number {rev}: must be 0 < rev < {maxrev}'
+ msg = f'Invalid revision number {rev}: must be 0 < rev < {self.max_revisions}'
return msg, 1
prompt_str = 'Proceed with reboot ?'