Loading cloudcontrol/node/hypervisor/domains/__init__.py +6 −2 Original line number Diff line number Diff line Loading @@ -115,8 +115,12 @@ class VirtualMachine(object): """Libvirt domain instance.""" return self.hypervisor.vir_con.lookupByUUIDString(self.uuid) def start(self): self.lv_dom.create() def start(self, pause=False): flags = 0 if pause: flags |= libvirt.VIR_DOMAIN_START_PAUSED self.lv_dom.createWithFlags(flags) def stop(self): self.lv_dom.shutdown() Loading Loading
cloudcontrol/node/hypervisor/domains/__init__.py +6 −2 Original line number Diff line number Diff line Loading @@ -115,8 +115,12 @@ class VirtualMachine(object): """Libvirt domain instance.""" return self.hypervisor.vir_con.lookupByUUIDString(self.uuid) def start(self): self.lv_dom.create() def start(self, pause=False): flags = 0 if pause: flags |= libvirt.VIR_DOMAIN_START_PAUSED self.lv_dom.createWithFlags(flags) def stop(self): self.lv_dom.shutdown() Loading