mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #48903 from Vaelatern/improve-salt-cloud-python3-virt
Wrap ElementTree.tostring to make strs, not bytes
This commit is contained in:
commit
f1adf56017
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue