mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 10:25:25 +03:00
Backed out changeset ebd54b0c882ae581fc020b87df8583417b8b9e97
Applied this patch in error -- the correct fix is already in.
This commit is contained in:
parent
621de87062
commit
8ff8679b10
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user