core: do not run commands on paused VM

This commit is contained in:
Marek Marczykowski-Górecki 2014-04-16 15:52:08 +02:00
parent bb9d8bbf78
commit f4deddbbdf

View File

@ -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))