From cc1ce3961d6cc570d3ee5b3846e38d21af177001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 23 Feb 2014 00:45:43 +0100 Subject: [PATCH] Rollback changes when VM creation failed Do not only remove files, also remove VM from qubes.xml. --- qubesmanager/create_new_vm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubesmanager/create_new_vm.py b/qubesmanager/create_new_vm.py index 3ed5f89..8b3aac3 100644 --- a/qubesmanager/create_new_vm.py +++ b/qubesmanager/create_new_vm.py @@ -215,6 +215,7 @@ class NewVmDlg (QDialog, Ui_NewVMDlg): thread_monitor.set_error_msg (str(ex)) if vm: vm.remove_from_disk() + self.qvm_collection.pop(vm.qid) finally: self.qvm_collection.unlock_db()