Pārlūkot izejas kodu

api/internal: don't try to start dom0

qrexec-policy do try to start a VM before executing service. Avoid this
here, instead of qrexec-policy to keep the later clean.
Marek Marczykowski-Górecki 7 gadi atpakaļ
vecāks
revīzija
1831088c9b
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      qubes/api/internal.py

+ 2 - 0
qubes/api/internal.py

@@ -62,6 +62,8 @@ class QubesInternalAPI(qubes.api.AbstractQubesAPI):
     @asyncio.coroutine
     def start(self):
         assert not self.arg
+        if self.dest.name == 'dom0':
+            return
 
         yield from self.dest.start()