summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 c7bd96e2f..892dcbff7 100644
--- a/python/vyos/config.py
+++ b/python/vyos/config.py
@@ -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):