summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-01-26 16:18:40 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-01-26 16:18:40 -0600
commit0f00cb45f01b1fc90aead2f06d6aa5ac7a02364b (patch)
treedc9403282c99674e8af8d77504caf07bc50a17da /python
parenta916124b1031ca4eaf9e6689feae428145a2ac9c (diff)
downloadvyos-1x-0f00cb45f01b1fc90aead2f06d6aa5ac7a02364b.tar.gz
vyos-1x-0f00cb45f01b1fc90aead2f06d6aa5ac7a02364b.zip
config-mgmt: T4962: add missing flag re.MULTILINE
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 772c62631..22a49ff50 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, maxsplit=1, flags=re.MULTILINE)[0]
def _get_saved_config_tree(self):
with open(config_file) as f: