1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #-: PyONE: don't strip whitespace in TEMPLATE (#1332)

(cherry picked from commit e201188e064e4b7a35205a66cdf4c7c64ca243dd)
(cherry picked from commit a91349ee650ad3a078942a4f1974b707998eb8bf)
This commit is contained in:
Jan Orel 2021-06-24 12:38:44 +02:00 committed by Ruben S. Montero
parent 839ece0f22
commit 36d1e3b2ca
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -94,7 +94,7 @@ def child2dict(element):
'''
xml = tostring(element)
ret = xmltodict.parse(xml)
ret = xmltodict.parse(xml, strip_whitespace=False)
# get the tag name and remove the ns attribute if present
if "}" in element.tag: