mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 01:55:20 +03:00
guest: Use newer named CreateXML API
CreateLinux is the very old style name. CreateXML has been around since at least 2009, which covers our minimum libvirt-python version
This commit is contained in:
parent
48ba2883e5
commit
837a9710a3
@ -399,7 +399,7 @@ class Guest(XMLBuilder):
|
||||
doboot = not noboot or self.installer.has_install_phase()
|
||||
|
||||
if doboot:
|
||||
dom = self.conn.createLinux(start_xml or final_xml, 0)
|
||||
dom = self.conn.createXML(start_xml or final_xml, 0)
|
||||
else:
|
||||
dom = self.conn.defineXML(start_xml or final_xml)
|
||||
|
||||
|
@ -218,7 +218,7 @@ class MagicURI(object):
|
||||
conn.getDomainCapabilities = fake_domcaps
|
||||
|
||||
if self.hv:
|
||||
origcreate = conn.createLinux
|
||||
origcreate = conn.createXML
|
||||
origdefine = conn.defineXML
|
||||
def newcreate(xml, flags):
|
||||
xml = sanitize_xml_for_test_define(xml)
|
||||
@ -226,5 +226,5 @@ class MagicURI(object):
|
||||
def newdefine(xml):
|
||||
xml = sanitize_xml_for_test_define(xml)
|
||||
return origdefine(xml)
|
||||
conn.createLinux = newcreate
|
||||
conn.createXML = newcreate
|
||||
conn.defineXML = newdefine
|
||||
|
Loading…
Reference in New Issue
Block a user