summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-12-11 12:55:11 -0600
committerGitHub <noreply@github.com>2023-12-11 12:55:11 -0600
commitd519d7dcd141cb6c57811f75f9a045c60b02b105 (patch)
tree062aa77ef628c7cf357c090128c037eff62ab554 /python
parent5230bf864d159eb6b3a57f45089a83e44df7ec1a (diff)
parent9244f8960bc5789427ee10dfdc994a62dbaa8cf4 (diff)
downloadvyos-1x-d519d7dcd141cb6c57811f75f9a045c60b02b105.tar.gz
vyos-1x-d519d7dcd141cb6c57811f75f9a045c60b02b105.zip
Merge pull request #2615 from vyos/mergify/bp/sagitta/pr-2598
T5812: Fix for rollback check max revision number (backport #2598)
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 ?'