tests: resolve template name when copying from host collection
This commit is contained in:
父節點
81dbe3628f
當前提交
0307ec22f2
@ -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,
|
||||
|
||||
載入中…
新增問題並參考
Block a user