summaryrefslogtreecommitdiff
path: root/python/vyos/xml_ref
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-07-06 11:49:27 +0100
committerGitHub <noreply@github.com>2023-07-06 11:49:27 +0100
commite8ff7aa564b03c6338b2c053f3c24a08fd2cf323 (patch)
treea126ff01591f781509a75bf0ed908fd01638b574 /python/vyos/xml_ref
parente47668d88a21f4077bfb88c1123de0c86679d868 (diff)
parent7147c7c6a541f5544a081905ad6bf93bdf458da8 (diff)
downloadvyos-1x-e8ff7aa564b03c6338b2c053f3c24a08fd2cf323.tar.gz
vyos-1x-e8ff7aa564b03c6338b2c053f3c24a08fd2cf323.zip
Merge pull request #2076 from jestabro/accel-dict
vyos.configdict: T5319: remove workarounds for incorrect defaults in get_accel_dict
Diffstat (limited to 'python/vyos/xml_ref')
-rw-r--r--python/vyos/xml_ref/definition.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/xml_ref/definition.py b/python/vyos/xml_ref/definition.py
index 7fd7a7b77..33a49ca69 100644
--- a/python/vyos/xml_ref/definition.py
+++ b/python/vyos/xml_ref/definition.py
@@ -147,8 +147,8 @@ class Xml:
default = self._get_default_value(node)
if default is None:
return None
- if self._is_multi_node(node) and not isinstance(default, list):
- return [default]
+ if self._is_multi_node(node):
+ return default.split()
return default
def get_defaults(self, path: list, get_first_key=False, recursive=False) -> dict: