core: log pci detach error on VM shutdown
Thanks @Rudd-O for pointing this out.
This commit is contained in:
parent
169eac6412
commit
9809e4168e
@ -1958,8 +1958,9 @@ class QubesVm(object):
|
|||||||
try:
|
try:
|
||||||
for pcidev in self.pcidevs:
|
for pcidev in self.pcidevs:
|
||||||
self.libvirt_domain.detachDevice(self._format_pci_dev(pcidev))
|
self.libvirt_domain.detachDevice(self._format_pci_dev(pcidev))
|
||||||
except libvirt.libvirtError:
|
except libvirt.libvirtError as e:
|
||||||
pass
|
print >>sys.stderr, "WARNING: {}, continuing VM shutdown " \
|
||||||
|
"anyway".format(str(e))
|
||||||
|
|
||||||
self.libvirt_domain.shutdown()
|
self.libvirt_domain.shutdown()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user