1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-29 11:16:14 +01:00

Fix processed node check in XmlModel

This commit is contained in:
Daniel Mach 2024-02-29 09:26:28 +01:00
parent cc9c27f5b5
commit 4e928a4505

View File

@ -707,12 +707,12 @@ class XmlModel(BaseModel):
continue
value = cls.value_from_string(field, node.text)
node.text = None
cls._remove_processed_node(root, node)
if value is None:
if field.is_optional:
continue
value = ""
kwargs[field_name] = value
cls._remove_processed_node(root, node)
cls._remove_processed_node(None, root)