Skip to content

xml_utils: insert <name> at position 0, not at the end#92

Merged
insatomcat merged 1 commit into
mainfrom
bugorder
May 21, 2026
Merged

xml_utils: insert <name> at position 0, not at the end#92
insatomcat merged 1 commit into
mainfrom
bugorder

Conversation

@insatomcat
Copy link
Copy Markdown
Member

SubElement always appends to the end of the parent element. When the input XML already contains children (os, memory, devices, etc.), the element ended up after all of them, violating libvirt's strict RNG schema ordering and triggering "Extra element os in interleave".

Use Element + insert(0, ...) to place first, as required.

SubElement always appends to the end of the parent element. When the
input XML already contains children (os, memory, devices, etc.), the
<name> element ended up after all of them, violating libvirt's strict
RNG schema ordering and triggering "Extra element os in interleave".

Use Element + insert(0, ...) to place <name> first, as required.

Signed-off-by: Florent Carli <florent.carli@rte-france.com>
@sonarqubecloud
Copy link
Copy Markdown

@insatomcat insatomcat merged commit 16bf3bc into main May 21, 2026
5 checks passed
@insatomcat insatomcat deleted the bugorder branch May 21, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants