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:
parent
cc9c27f5b5
commit
4e928a4505
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user