dom0/core: one more "nonupdatable template" cleanup

This commit is contained in:
Marek Marczykowski 2012-03-15 20:24:56 +01:00
parent 2eec6aaa7c
commit 0c9781648a

View File

@ -1607,19 +1607,6 @@ class QubesTemplateVm(QubesVm):
return True
def start(self, debug_console = False, verbose = False, preparing_dvm=False):
if dry_run:
return
self.reset_volatile_storage(verbose=verbose)
if not self.updateable:
raise QubesException ("Cannot start Template VM that is marked \"nonupdatable\"")
# TODO?: check if none of running appvms are outdated
return super(QubesTemplateVm, self).start(debug_console=debug_console, verbose=verbose)
def reset_volatile_storage(self, verbose = False):
assert not self.is_running(), "Attempt to clean volatile image of running Template VM!"