def detach(self): """ Detach the device from the host. This method *must* be called before getXML in order to populate _deviceParams. """ if self.is_hostdevice: detach_detachable(self.hostdev) else: raise Exception("Tried to detach a non host device: %s" % (self.conf,))
def detach(self): """ Detach the device from the host. This method *must* be called before getXML in order to populate _deviceParams. """ if self.is_hostdevice: detach_detachable(self.hostdev) else: raise Exception('Tried to detach a non host device: %s' % (self.conf, ))
def detach(self): """ Detach the device from the host. This method *must* be called before getXML in order to populate _deviceParams. """ self._deviceParams = detach_detachable(self.device)