From 9dc0d74098f98d2917a85959acd4915fe7a4ffe1 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 10 Dec 2019 11:05:37 -0600 Subject: vyos.config: T1862: restore regex after merge --- python/vyos/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3