From aee16ab9ed2d7cc4c3ef983f7fcef184bd546e38 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 4 Jul 2023 21:09:15 -0500 Subject: xml: T5218: add missing str.split() in defaults of multi node --- python/vyos/xml_ref/definition.py | 4 ++-- 1 file 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: -- cgit v1.2.3