Rollback changes when VM creation failed
Do not only remove files, also remove VM from qubes.xml.
This commit is contained in:
		
							parent
							
								
									3d67863727
								
							
						
					
					
						commit
						cc1ce3961d
					
				@ -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()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user