diff options
author | John Estabrook <jestabro@vyos.io> | 2023-01-26 16:18:40 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-01-26 16:18:40 -0600 |
commit | 0f00cb45f01b1fc90aead2f06d6aa5ac7a02364b (patch) | |
tree | dc9403282c99674e8af8d77504caf07bc50a17da /python/vyos/config_mgmt.py | |
parent | a916124b1031ca4eaf9e6689feae428145a2ac9c (diff) | |
download | vyos-1x-0f00cb45f01b1fc90aead2f06d6aa5ac7a02364b.tar.gz vyos-1x-0f00cb45f01b1fc90aead2f06d6aa5ac7a02364b.zip |
config-mgmt: T4962: add missing flag re.MULTILINE
Diffstat (limited to 'python/vyos/config_mgmt.py')
-rw-r--r-- | python/vyos/config_mgmt.py | 2 |
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: |