Backed out changeset ebd54b0c882ae581fc020b87df8583417b8b9e97

Applied this patch in error -- the correct fix is already in.
This commit is contained in:
Hugh O. Brock 2007-06-13 15:15:42 -04:00
parent 621de87062
commit 8ff8679b10

View File

@ -540,15 +540,15 @@ class vmmDomain(gobject.GObject):
if self.is_active():
self.vm.attachDevice(xml)
else:
vmxml = self.vm.XMLDesc(0)
index = vmxml.find("</devices>")
newxml = vmxml[0:index] + xml + vmxml[index:]
vmxml = self.vm.XMLDesc(0)
logging.debug("Redefine with " + newxml)
index = vmxml.find("</devices>")
newxml = vmxml[0:index] + xml + vmxml[index:]
self.get_connection().define_domain(newxml)
logging.debug("Redefine with " + newxml)
self.get_connection().define_domain(newxml)
def remove_device(self, dev_xml):
logging.debug("Removing device " + dev_xml)