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:
parent
ca1be8683c
commit
113fe3391d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user