You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emulation/xen-tools/files/xen-tools-4.1.2-pyxml.patch

13 lines
408 B

--- tools/python/xen/xm/create.py
+++ tools/python/xen/xm/create.py
@@ -1538,6 +1538,9 @@
SXPPrettyPrint.prettyprint(config)
if opts.vals.xmldryrun and serverType == SERVER_XEN_API:
+ import xml
+ if hasattr(xml, "use_pyxml"):
+ xml.use_pyxml()
from xml.dom.ext import PrettyPrint as XMLPrettyPrint
XMLPrettyPrint(doc)