mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
parent
3aaf41195b
commit
9e122bae47
@ -110,6 +110,9 @@ def child2dict(element):
|
||||
# Replace 'None' values returned by xmltodict by ""
|
||||
none2emptystr(ret)
|
||||
|
||||
if not isinstance(ret[tagName], OrderedDict) and isinstance(ret[tagName], dict):
|
||||
ret[tagName] = OrderedDict(ret[tagName])
|
||||
|
||||
# return the contents dictionary, but save a reference
|
||||
ret[tagName]._root = ret
|
||||
return ret[tagName]
|
||||
|
Loading…
x
Reference in New Issue
Block a user