From 48613fb911121bcac9d607c831ff0a6b3e7ca299 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 11 Mar 2011 02:11:05 +0100 Subject: [PATCH] Check if netvm is set for ProxyVM before using it... --- dom0/qvm-core/qubes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 9342109a..0b4b92eb 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -1104,7 +1104,8 @@ class QubesProxyVm(QubesNetVm): def __init__(self, **kwargs): super(QubesProxyVm, self).__init__(uses_default_netvm=False, **kwargs) self.rules_applied = None - self.netvm_vm.add_external_ip_permission(self.get_xid()) + if self.netvm_vm is not None: + self.netvm_vm.add_external_ip_permission(self.get_xid()) @property def type(self):