diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-07-03 12:40:27 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-07-04 11:49:33 +0200 |
commit | d76798085ea8a77ffca3c6fbb6df74fc3121c333 (patch) | |
tree | 2d02d6b4a96b22048afdec8145cbbcf26bc30acd /python | |
parent | f5ba26201a9e36f4054b673795a3b7298e9cb0d7 (diff) | |
download | vyos-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.py | 3 |
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) |