summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-01-26 15:38:12 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-01-26 15:38:12 -0600
commita916124b1031ca4eaf9e6689feae428145a2ac9c (patch)
tree3a27740fe8752864b56ff8f476617319afb4f4ee /python
parent571b0db7cf7878e353857f51da7f1e41fdcca354 (diff)
downloadvyos-1x-a916124b1031ca4eaf9e6689feae428145a2ac9c.tar.gz
vyos-1x-a916124b1031ca4eaf9e6689feae428145a2ac9c.zip
config-mgmt: T4962: fix typo in regex
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 1be63b08f..772c62631 100644
--- a/python/vyos/config_mgmt.py
+++ b/python/vyos/config_mgmt.py
@@ -428,7 +428,7 @@ Proceed ?'''
#
@staticmethod
def _strip_version(s):
- return re.split(r'(//)', s)[0]
+ return re.split(r'(^//)', s)[0]
def _get_saved_config_tree(self):
with open(config_file) as f: