Browse Source

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.
Marek Marczykowski-Górecki 10 years ago
parent
commit
113fe3391d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core-modules/000QubesVm.py

+ 3 - 0
core-modules/000QubesVm.py

@@ -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)