core: do not run commands on paused VM
This commit is contained in:
		
							parent
							
								
									bb9d8bbf78
								
							
						
					
					
						commit
						f4deddbbdf
					
				@ -1466,6 +1466,8 @@ class QubesVm(object):
 | 
			
		||||
                                     "Close one or more running VMs and try "
 | 
			
		||||
                                     "again.".format(self.name))
 | 
			
		||||
 | 
			
		||||
        if self.is_paused():
 | 
			
		||||
            raise QubesException("VM is paused")
 | 
			
		||||
        if not self.is_qrexec_running():
 | 
			
		||||
            raise QubesException(
 | 
			
		||||
                "Domain '{}': qrexec not connected.".format(self.name))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user