Merge remote-tracking branch 'origin/pr/156'
* origin/pr/156: Added more resilience to missing permissions to utils
This commit is contained in:
commit
a7748d8cdf
@ -144,8 +144,13 @@ def vm_dependencies(app, reference_vm):
|
|||||||
if vm == reference_vm:
|
if vm == reference_vm:
|
||||||
continue
|
continue
|
||||||
for prop in vm_properties:
|
for prop in vm_properties:
|
||||||
if reference_vm == getattr(vm, prop, None) and \
|
if not hasattr(vm, prop):
|
||||||
not vm.property_is_default(prop):
|
continue
|
||||||
|
try:
|
||||||
|
is_prop_default = vm.property_is_default(prop)
|
||||||
|
except qubesadmin.exc.QubesPropertyAccessError:
|
||||||
|
is_prop_default = False
|
||||||
|
if reference_vm == getattr(vm, prop, None) and not is_prop_default:
|
||||||
result.append((vm, prop))
|
result.append((vm, prop))
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user