dom0: initialize vmtype in create_appmenus (#212)
This commit is contained in:
parent
c1f4fcc172
commit
f1153a5413
@ -742,6 +742,12 @@ class QubesVm(object):
|
||||
if source_template is None:
|
||||
source_template = self.template_vm
|
||||
|
||||
vmtype = None
|
||||
if self.is_netvm():
|
||||
vmtype = 'servicevms'
|
||||
else:
|
||||
vmtype = 'appvms'
|
||||
|
||||
try:
|
||||
if source_template is not None:
|
||||
subprocess.check_call ([qubes_appmenu_create_cmd, source_template.appmenus_templates_dir, self.name])
|
||||
|
Loading…
Reference in New Issue
Block a user