dom0: correctly remove appmenus for ServiceVM (if any)

This commit is contained in:
Marek Marczykowski 2011-09-06 01:17:09 +02:00
parent 77ec31d164
commit 320847de91

View File

@ -1755,7 +1755,12 @@ class QubesAppVm(QubesVm):
if dry_run:
return
subprocess.check_call ([qubes_appmenu_remove_cmd, self.name])
vmtype = ''
if self.is_netvm():
vmtype = 'servicevms'
else:
vmtype = 'appvms'
subprocess.check_call ([qubes_appmenu_remove_cmd, self.name, vmtype])
super(QubesAppVm, self).remove_from_disk()