Merge pull request #48903 from Vaelatern/improve-salt-cloud-python3-virt

Wrap ElementTree.tostring to make strs, not bytes
This commit is contained in:
Nicole Thomas 2018-08-03 15:12:33 -04:00 committed by GitHub
commit f1adf56017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2010,7 +2010,7 @@ def snapshot(domain, name=None, suffix=None):
n_name = ElementTree.SubElement(doc, 'name')
n_name.text = name
_get_domain(domain).snapshotCreateXML(ElementTree.tostring(doc))
_get_domain(domain).snapshotCreateXML(salt.utils.stringutils.to_str(ElementTree.tostring(doc)))
return {'name': name}