core: do not run commands on paused VM

Этот коммит содержится в:
Marek Marczykowski-Górecki 2014-04-16 15:52:08 +02:00
родитель bb9d8bbf78
Коммит 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))