summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@sentrium.io>2019-12-10 11:05:37 -0600
committerJohn Estabrook <jestabro@sentrium.io>2019-12-10 11:05:37 -0600
commit9dc0d74098f98d2917a85959acd4915fe7a4ffe1 (patch)
treeddf45145f822f1906f7232658604a199f965c406 /python
parent13cc395f1a61f9cfaf62162e9f81ce895af16b4a (diff)
downloadvyos-1x-9dc0d74098f98d2917a85959acd4915fe7a4ffe1.tar.gz
vyos-1x-9dc0d74098f98d2917a85959acd4915fe7a4ffe1.zip
vyos.config: T1862: restore regex after merge
Diffstat (limited to 'python')
-rw-r--r--python/vyos/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/config.py b/python/vyos/config.py
index 1a0da3e54..8bf5a1727 100644
--- a/python/vyos/config.py
+++ b/python/vyos/config.py
@@ -195,7 +195,7 @@ class Config(object):
# libvyosconfig exists() works only for _nodes_, not _values_
# libvyattacfg one also worked for values, so we emulate that case here
if isinstance(path, str):
- path = re.split(r'\s*', path)
+ path = re.split(r'\s+', path)
path_without_value = path[:-1]
path_str = " ".join(path_without_value)
try: