core: fix vm.is_outdated() for template-based HVM

HVM template can't be started while any its VM is running, so VM is
never outdated.
This commit is contained in:
Marek Marczykowski-Górecki 2014-04-18 01:34:09 +02:00
parent ca1be8683c
commit 113fe3391d

View File

@ -769,6 +769,9 @@ class QubesVm(object):
if not self.is_running():
return False
if not hasattr(self.template, 'rootcow_img'):
return False
rootimg_inode = os.stat(self.template.root_img)
try:
rootcow_inode = os.stat(self.template.rootcow_img)