From 0307ec22f28e39afb06423279cc7b251c0903277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 11 Feb 2016 01:46:25 +0100 Subject: [PATCH] tests: resolve template name when copying from host collection --- qubes/tests/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index 645c3d13..7ad3cb60 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -395,6 +395,8 @@ class SystemTestsMixin(object): def init_default_template(self, template=None): if template is None: template = self.host_app.default_template + elif isinstance(template, basestring): + template = self.host_app.domains[template] template_vm = self.app.add_new_vm(qubes.vm.templatevm.TemplateVM, name=template.name,