Check if netvm is set for ProxyVM before using it...

This commit is contained in:
Marek Marczykowski 2011-03-11 02:11:05 +01:00
parent 41800eb879
commit 48613fb911

View File

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