mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-01 04:36:13 +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
|
continue
|
||||||
value = cls.value_from_string(field, node.text)
|
value = cls.value_from_string(field, node.text)
|
||||||
node.text = None
|
node.text = None
|
||||||
|
cls._remove_processed_node(root, node)
|
||||||
if value is None:
|
if value is None:
|
||||||
if field.is_optional:
|
if field.is_optional:
|
||||||
continue
|
continue
|
||||||
value = ""
|
value = ""
|
||||||
kwargs[field_name] = value
|
kwargs[field_name] = value
|
||||||
cls._remove_processed_node(root, node)
|
|
||||||
|
|
||||||
cls._remove_processed_node(None, root)
|
cls._remove_processed_node(None, root)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user