summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-07-03 12:40:27 +0200
committerDaniil Baturin <daniil@baturin.org>2019-07-04 11:49:33 +0200
commitd76798085ea8a77ffca3c6fbb6df74fc3121c333 (patch)
tree2d02d6b4a96b22048afdec8145cbbcf26bc30acd /python
parentf5ba26201a9e36f4054b673795a3b7298e9cb0d7 (diff)
downloadvyos-1x-d76798085ea8a77ffca3c6fbb6df74fc3121c333.tar.gz
vyos-1x-d76798085ea8a77ffca3c6fbb6df74fc3121c333.zip
[vyos.config] T1505: correct return_effective_values output splitting.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/config.py b/python/vyos/config.py
index bcf04225b..7483e3552 100644
--- a/python/vyos/config.py
+++ b/python/vyos/config.py
@@ -383,7 +383,8 @@ class Config(object):
else:
try:
out = self._run(self._make_command('returnEffectiveValues', full_path))
- return out
+ values = re.findall(r"\'(.*?)\'", out)
+ return values
except VyOSError:
return(default)