Init guests with actual libvirt connections, not virt-manager connection objects.

This commit is contained in:
Cole Robinson 2008-06-12 17:18:50 -04:00
parent 1f83054001
commit 484bc23638
1 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ class vmmCreate(gobject.GObject):
# Guest to fill in with values along the way
self._guest = virtinst.Guest(type=self.get_domain_type(),
connection=self.connection,
connection=self.connection.vmm,
hypervisorURI=self.connection.get_uri())
self._disk = None
self._net = None
@ -842,12 +842,12 @@ class vmmCreate(gobject.GObject):
if self.get_config_method() == VM_PARA_VIRT:
self._guest = virtinst.ParaVirtGuest(type=self.get_domain_type(),
hypervisorURI=self.connection.get_uri(),
connection=self.connection)
connection=self.connection.vmm)
else:
self._guest = virtinst.FullVirtGuest(type=self.get_domain_type(),
arch=self.get_domain_arch(),
hypervisorURI=self.connection.get_uri(),
connection=self.connection)
connection=self.connection.vmm)
self._guest.name = name # Transfer name over