Do the right thing on removal of proxyVM used as dispvm_netvm

This commit is contained in:
unman 2017-01-06 18:40:09 +00:00
parent 1025625772
commit 19e68bacf2
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -655,7 +655,10 @@ class QubesVm(object):
return self.netvm
else:
if isinstance(self._dispvm_netvm, int):
return self._collection[self._dispvm_netvm]
if self._dispvm_netvm in self._collection:
return self._collection[self._dispvm_netvm]
else:
return None
else:
return self._dispvm_netvm