tests: resolve template name when copying from host collection

This commit is contained in:
Marek Marczykowski-Górecki 2016-02-11 01:46:25 +01:00 committed by Wojtek Porczyk
parent 81dbe3628f
commit 0307ec22f2

View File

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