dom0: initialize vmtype in create_appmenus (#212)

This commit is contained in:
Marek Marczykowski 2011-07-20 16:06:22 +02:00
parent c1f4fcc172
commit f1153a5413

View File

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