def undefine(self): """ Undefine the VM. """ try: virsh.undefine(self.name, uri=self.connect_uri) except error.CmdError, detail: logging.error("Undefined VM %s failed:\n%s", self.name, detail) return False
def undefine(self): """ Undefine the VM. """ return virsh.undefine(self.name, uri=self.connect_uri)