summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/vyos/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/config.py b/python/vyos/config.py
index ee1adb289..5c2fc7285 100644
--- a/python/vyos/config.py
+++ b/python/vyos/config.py
@@ -222,7 +222,7 @@ class Config(object):
except VyOSError:
return False
- def show_config(self, path='', default=None):
+ def show_config(self, path=[], default=None):
"""
Args:
path (str): Configuration tree path, or empty
@@ -231,6 +231,8 @@ class Config(object):
Returns:
str: working configuration
"""
+ if isinstance(path, list):
+ path = " ".join(path)
try:
out = self._run(self._make_command('showConfig', path))
return out