diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-02-28 14:43:06 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-02-28 14:43:06 +0100 |
commit | 6ccbfde76e951652fdafa3bd602bc6c2e6f28c9d (patch) | |
tree | ec2938d34c89b6fac0184e4db332f3951dfffe32 /python/vyos/config.py | |
parent | ad4e0d54134a5767cc1f0e61136ded9422ef127a (diff) | |
download | vyos-1x-6ccbfde76e951652fdafa3bd602bc6c2e6f28c9d.tar.gz vyos-1x-6ccbfde76e951652fdafa3bd602bc6c2e6f28c9d.zip |
Fix return_values function (return a list instead of a raw string).
Diffstat (limited to 'python/vyos/config.py')
-rw-r--r-- | python/vyos/config.py | 3 |
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) |