def _create_inspection_thread(self): if not self.config.support_inspection: logging.debug("No inspection thread because " "libguestfs is too old, not available, " "or libvirt is not thread safe.") return from virtManager.inspection import vmmInspection self.inspection = vmmInspection() self.inspection.start() self.connect("conn-added", self.inspection.conn_added) self.connect("conn-removed", self.inspection.conn_removed) return
def _create_inspection_thread(self): logging.debug("libguestfs inspection support: %s", self.config.support_inspection) if not self.config.support_inspection: return from virtManager.inspection import vmmInspection self.inspection = vmmInspection() self.inspection.start() self.connect("conn-added", self.inspection.conn_added) self.connect("conn-removed", self.inspection.conn_removed) return