diff --git a/qubesadmin/base.py b/qubesadmin/base.py index a674699..2a8fcaa 100644 --- a/qubesadmin/base.py +++ b/qubesadmin/base.py @@ -233,7 +233,7 @@ class PropertyHolder(object): if prop_type == 'vm': if value == '': return None - return self.app.domains[value] + return self.app.domains.get_blind(value) if prop_type == 'label': if value == '': return None diff --git a/qubesadmin/devices.py b/qubesadmin/devices.py index c09e1ce..4efcab7 100644 --- a/qubesadmin/devices.py +++ b/qubesadmin/devices.py @@ -209,7 +209,7 @@ class DeviceCollection(object): ['True', 'yes', True]) if persistent is not None and dev_persistent != persistent: continue - backend_domain = self._vm.app.domains[backend_domain] + backend_domain = self._vm.app.domains.get_blind(backend_domain) yield DeviceAssignment(backend_domain, ident, options, persistent=dev_persistent, frontend_domain=self._vm,