diff options
Diffstat (limited to 'core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu')
-rw-r--r-- | core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java index ecc97b12..e5bc4780 100644 --- a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java +++ b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java @@ -178,11 +178,6 @@ public class App vm.start(); } catch ( LibvirtVirtualMachineException e ) { LOGGER.error( "Failed to start defined VM: " + e.getLocalizedMessage() ); - try { - hypervisor.deregisterVm( vm ); - } catch ( LibvirtHypervisorException | LibvirtVirtualMachineException e1 ) { - LOGGER.error( "Failed to undefine VM in error state after failed start of VM: " + e.getLocalizedMessage() ); - } hypervisor.close(); System.exit( 7 ); } @@ -193,11 +188,6 @@ public class App vmViewer.display(); } catch ( ViewerException e ) { LOGGER.error( "Failed to display VM: " + e.getLocalizedMessage() ); - try { - hypervisor.deregisterVm( vm ); - } catch ( LibvirtHypervisorException | LibvirtVirtualMachineException e1 ) { - LOGGER.error( "Failed to undefine VM in error state after failed display: " + e.getLocalizedMessage() ); - } hypervisor.close(); System.exit( 8 ); } @@ -208,6 +198,7 @@ public class App } catch ( LibvirtHypervisorException | LibvirtVirtualMachineException e ) { LOGGER.error( "Failed to undefine VM: " + e.getLocalizedMessage() ); hypervisor.close(); + System.exit( 9 ); } // close connection to hypervisor |