Assert that a TemplateVM can't have a template
This commit is contained in:
parent
6aac0a5732
commit
f74646fb1b
@ -22,6 +22,7 @@ class TemplateVM(qubes.vm.qubesvm.QubesVM):
|
||||
yield vm
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
assert 'template' not in kwargs, "A TemplateVM can not have a template"
|
||||
super(TemplateVM, self).__init__(*args, **kwargs)
|
||||
|
||||
# Some additional checks for template based VM
|
||||
|
Loading…
Reference in New Issue
Block a user