qubes.vm: implement TemplateVM.appvms property
This commit is contained in:
parent
7117847816
commit
2a46abbefd
@ -15,6 +15,11 @@ class TemplateVM(qubes.vm.qubesvm.QubesVM):
|
||||
'''COW image'''
|
||||
return self.storage.rootcow_img
|
||||
|
||||
@property
|
||||
def appvms(self):
|
||||
for vm in self.app.domains:
|
||||
if hasattr(vm, 'template') and vm.template is self:
|
||||
yield vm
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(TemplateVM, self).__init__(*args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user