summaryrefslogtreecommitdiff
path: root/python/vyos/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos/config.py')
-rw-r--r--python/vyos/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/config.py b/python/vyos/config.py
index 441944338..1a0da3e54 100644
--- a/python/vyos/config.py
+++ b/python/vyos/config.py
@@ -126,7 +126,7 @@ class Config(object):
# It may cause problems with exists() when it's used for checking values,
# since values may contain whitespace.
if isinstance(path, str):
- path = re.split(r'\s*', path)
+ path = re.split(r'\s+', path)
elif isinstance(path, list):
pass
else:
@@ -161,7 +161,7 @@ class Config(object):
# XXX: for small strings in-place concatenation is not a problem
if isinstance(path, str):
if path:
- self._level = re.split(r'\s*', path)
+ self._level = re.split(r'\s+', path)
else:
self._level = []
elif isinstance(path, list):