mirror of https://github.com/apache/cloudstack.git
marvin: assertion check when fetching featured templates
This commit is contained in:
parent
3ba8dc455f
commit
7d4e65740b
|
|
@ -126,6 +126,7 @@ def get_template(apiclient, zoneid, ostype, services=None):
|
|||
|
||||
list_templates = apiclient.listTemplates(cmd)
|
||||
|
||||
assert len(list_templates) > 0
|
||||
for template in list_templates:
|
||||
if template.ostypeid == ostypeid:
|
||||
return template
|
||||
|
|
|
|||
Loading…
Reference in New Issue