summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6160d9a6b..6f544462c 100644
--- a/python/vyos/config.py
+++ b/python/vyos/config.py
@@ -117,7 +117,8 @@ class Config(object):
else:
try:
out = self._run(self._make_command('returnValues', full_path))
- return out
+ values = out.split()
+ return list(map(lambda x: re.sub(r'^\'(.*)\'$', r'\1',x), values))
except VyOSError:
return(default)