mirror of
				https://git.proxmox.com/git/qemu-server
				synced 2025-11-04 12:52:06 +00:00 
			
		
		
		
	destroy VM: test for running VM before starting background task
This commit is contained in:
		
							parent
							
								
									0eeafe9f78
								
							
						
					
					
						commit
						db593da26c
					
				@ -1164,6 +1164,10 @@ __PACKAGE__->register_method({
 | 
			
		||||
	die "unable to remove VM $vmid - used in HA resources\n"
 | 
			
		||||
	    if PVE::HA::Config::vm_is_ha_managed($vmid);
 | 
			
		||||
 | 
			
		||||
	# early tests (repeat after locking)
 | 
			
		||||
	die "VM $vmid is running - destroy failed\n"
 | 
			
		||||
	    if PVE::QemuServer::check_running($vmid);
 | 
			
		||||
 | 
			
		||||
	my $realcmd = sub {
 | 
			
		||||
	    my $upid = shift;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user