def resume(self, id): domain = self._get_domain(id) if domain.state(0)[0] == libvirt.VIR_DOMAIN_RUNNING: return True return domain.resume() == 0