diff options
author | hagbard <vyosdev@derith.de> | 2018-08-26 10:10:38 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2018-08-26 10:10:38 -0700 |
commit | f2aaa21fb909933246f3340240dc17d05c5f9695 (patch) | |
tree | ab3032c5162b8cc51c05e30cf8e69c14a4e1789b /python/vyos/config.py | |
parent | 2c6e9b40b41947dcd5de00d9912c9f531b70e8fa (diff) | |
parent | 5545782bd2ffb4f715699c4a2a343462e916faca (diff) | |
download | vyos-1x-f2aaa21fb909933246f3340240dc17d05c5f9695.tar.gz vyos-1x-f2aaa21fb909933246f3340240dc17d05c5f9695.zip |
Merge remote-tracking branch 'upstream/current' into current
Diffstat (limited to 'python/vyos/config.py')
-rw-r--r-- | python/vyos/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/vyos/config.py b/python/vyos/config.py index 5af830480..bcf04225b 100644 --- a/python/vyos/config.py +++ b/python/vyos/config.py @@ -280,8 +280,8 @@ class Config(object): else: try: out = self._run(self._make_command('returnValues', full_path)) - values = out.split() - return list(map(lambda x: re.sub(r'^\'(.*)\'$', r'\1',x), values)) + values = re.findall(r"\'(.*?)\'", out) + return values except VyOSError: return(default) @@ -309,8 +309,8 @@ class Config(object): if self.is_tag(path): try: out = self._run(self._make_command('listNodes', full_path)) - values = out.split() - return list(map(lambda x: re.sub(r'^\'(.*)\'$', r'\1',x), values)) + values = re.findall(r"\'(.*?)\'", out) + return values except VyOSError: return(default) else: |