From c2d7231c6a8978f2da4049f008dd615804c70769 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 6 Jun 2018 11:54:08 -0400 Subject: [PATCH] Remove that whole bad logic and do it on the client side --- VMInstance.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/VMInstance.py b/VMInstance.py index 3cf22c41..0e712d1d 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -240,10 +240,6 @@ class VMInstance: domxml = str(domxml.decode('ascii')) self.start_vm(domxml) - # We got no state and the VM isn't told to stop, so the VM is deleted and should be stopped - elif running == libvirt.VIR_DOMAIN_NOSTATE and self.state != "stop" and self.inshutdown == False and self.instop == False: - self.stop_vm() - # This function is a wrapper for libvirt.lookupByUUID which fixes some problems # 1. Takes a text UUID and handles converting it to bytes