dom0/core: remove appmenus when removing NetVM (#627)

This commit is contained in:
Marek Marczykowski 2012-07-14 15:12:41 +02:00
parent 45ecf318ca
commit 7fbeacc81b

View File

@ -1892,6 +1892,15 @@ class QubesNetVm(QubesVm):
if not self.internal:
self.create_appmenus (verbose, source_template=source_template)
def remove_from_disk(self):
if dry_run:
return
if not self.internal:
self.remove_appmenus()
super(QubesNetVm, self).remove_from_disk()
class QubesProxyVm(QubesNetVm):
"""
A class that represents a ProxyVM, ex FirewallVM. A child of QubesNetVM.