summaryrefslogtreecommitdiff
path: root/python/vyos/config.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-07-03 12:40:27 +0200
committerDaniil Baturin <daniil@baturin.org>2019-07-03 12:40:27 +0200
commit3f7322d7f15ac348f1d06ba411c935956e276a76 (patch)
treed37ef92aba4911a16661d64da70ea635bbfcce9a /python/vyos/config.py
parent65f5e295c3dbe72ca3df831c552d7bc92389c958 (diff)
downloadvyos-1x-3f7322d7f15ac348f1d06ba411c935956e276a76.tar.gz
vyos-1x-3f7322d7f15ac348f1d06ba411c935956e276a76.zip
[vyos.config] T1505: correct return_effective_values output splitting.
Diffstat (limited to 'python/vyos/config.py')
-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 96e9631e0..c9c73b971 100644
--- a/python/vyos/config.py
+++ b/python/vyos/config.py
@@ -405,7 +405,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)