Skip to contentSkip to conversation

Pass --skipdtd parameter to 'xm new' application

PATCH New Stefan Berger 1 participant 1 message Jul 14, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Pass --skipdtd parameter to 'xm new' application

Pass the -s|--skipdtd parameter through to the 'xm new' application. On my machine I get random hangs in the function that's loading the dtd (xmldtd.load_dtd in xenapi_create.py)?!

---
 xen-unstable.hg/tools/python/xen/xm/new.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
xen-unstable.hg/tools/python/xen/xm/new.py +2 -1
Index: root/xen-unstable.hg/tools/python/xen/xm/new.py
===================================================================
@@ -75,7 +75,8 @@ def main(argv):
         doc = sxp2xml_inst.convert_sxp_to_xml(config) 
         
         xenapi_create_inst = xenapi_create()
-        vm_refs = xenapi_create_inst.create(document = doc)
+        vm_refs = xenapi_create_inst.create(document = doc,
+                                            opts.vals.skipdtd)
     else:       
         make_unstarted_domain(opts, config)
         

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel