From 765213785486f764fa7babe185bfc3b1aec6a610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 4 Apr 2015 21:49:40 +0200 Subject: [PATCH] core: make sure that dom0.libvirt_domain isn't used libvirt do not have domain object for dom0, so do not try to access it. --- core-modules/006QubesAdminVm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-modules/006QubesAdminVm.py b/core-modules/006QubesAdminVm.py index 89c4730f..4af560d7 100644 --- a/core-modules/006QubesAdminVm.py +++ b/core-modules/006QubesAdminVm.py @@ -57,7 +57,7 @@ class QubesAdminVm(QubesNetVm): @property def libvirt_domain(self): - return None + raise ValueError("Dom0 do not have libvirt object") @property def type(self):