1
0

Assert that a TemplateVM can't have a template

Dieser Commit ist enthalten in:
Bahtiar `kalkin-` Gadimov 2016-03-23 18:23:12 +01:00 committet von Wojtek Porczyk
Ursprung 6aac0a5732
Commit f74646fb1b

Datei anzeigen

@ -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