diff options
author | Cole Robinson <crobinso@redhat.com> | 2016-06-17 08:07:36 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2016-06-17 08:58:28 -0400 |
commit | 837a9710a3008c5af5514e9e66182a7ba9ce956f (patch) | |
tree | 213d2da3166d9c283b8105ae12448e4f7db2ecfe | |
parent | 48ba2883e5721d76f2d6c8ba8f72b1872018c645 (diff) | |
download | virt-manager-837a9710a3008c5af5514e9e66182a7ba9ce956f.tar.gz |
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
-rw-r--r-- | virtinst/guest.py | 2 | ||||
-rw-r--r-- | virtinst/uri.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/virtinst/guest.py b/virtinst/guest.py index 22da8fe2..fecc9a25 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -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) diff --git a/virtinst/uri.py b/virtinst/uri.py index 08c7bb0d..36747266 100644 --- a/virtinst/uri.py +++ b/virtinst/uri.py @@ -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 |