diff options
author | John Estabrook <jestabro@vyos.io> | 2023-07-04 21:09:15 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-07-05 19:50:27 -0500 |
commit | aee16ab9ed2d7cc4c3ef983f7fcef184bd546e38 (patch) | |
tree | ca10bc4e34d5b7497e58947f8c9bcc9e78942de7 /python/vyos | |
parent | e47668d88a21f4077bfb88c1123de0c86679d868 (diff) | |
download | vyos-1x-aee16ab9ed2d7cc4c3ef983f7fcef184bd546e38.tar.gz vyos-1x-aee16ab9ed2d7cc4c3ef983f7fcef184bd546e38.zip |
xml: T5218: add missing str.split() in defaults of multi node
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/xml_ref/definition.py | 4 |
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: |