make xml_to_json parsing consistent
Bug #1215263 reported by
Aditi Raveesh
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Low
|
Aditi Raveesh |
Bug Description
The xml_to_json parsing strips out the namespace from the attributes of a node while constructing the json.
However, the namespace is retained in the key, if it is an attribute of the node in the xml.
We need to keep this consistent across both attributes and child elements in the xml.
For eg.
<flavor name="flavor_
<
</flavor>
gets converted to json in this way:
{"name": "flavor_name", "extra_
(Attribute's namespace is stripped off, but child element's namespace is retained)
Changed in tempest: | |
assignee: | nobody → Aditi Raveesh (aditirav) |
Changed in tempest: | |
importance: | Undecided → Low |
status: | New → Confirmed |
To post a comment you must log in.
the issue was fixed at tempest/ services/ compute/ xml/flavors_ client. py