summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@sentrium.io>2019-12-09 11:57:09 -0600
committerJohn Estabrook <jestabro@sentrium.io>2019-12-09 12:07:19 -0600
commiteced4a49c67d2e0e3e131193afe679aee0c5c679 (patch)
treea0139dd57f098ca94806994f17c6f504e5b38807 /python
parent12a21a4bba6dfeb3ebb005b62748a2dbaabd84df (diff)
downloadvyos-1x-eced4a49c67d2e0e3e131193afe679aee0c5c679.tar.gz
vyos-1x-eced4a49c67d2e0e3e131193afe679aee0c5c679.zip
vyos.config: T1764: allow for list argument to exists, in value case
Diffstat (limited to 'python')
-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 532b56571..441944338 100644
--- a/python/vyos/config.py
+++ b/python/vyos/config.py
@@ -194,7 +194,8 @@ class Config(object):
else:
# libvyosconfig exists() works only for _nodes_, not _values_
# libvyattacfg one also worked for values, so we emulate that case here
- path = re.split(r'\s*', path)
+ if isinstance(path, str):
+ path = re.split(r'\s*', path)
path_without_value = path[:-1]
path_str = " ".join(path_without_value)
try: