Forráskód Böngészése

tests: fix importing template in non-default pool

Marek Marczykowski-Górecki 7 éve
szülő
commit
7f2ca33774
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      qubes/tests/__init__.py

+ 2 - 1
qubes/tests/__init__.py

@@ -523,7 +523,8 @@ class SystemTestsMixin(object):
             label='black')
         for name, volume in template_vm.volumes.items():
             if volume.pool != template.volumes[name].pool:
-                template_vm.storage.init_volume(name, volume.config)
+                template_vm.storage.init_volume(name,
+                    template.volumes[name].config)
         self.app.default_template = template_vm
 
     def init_networking(self):