Skip to content

Commit 7d4e657

Browse files
author
Prasanna Santhanam
committed
marvin: assertion check when fetching featured templates
1 parent 3ba8dc4 commit 7d4e657

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/marvin/marvin/integration/lib/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def get_template(apiclient, zoneid, ostype, services=None):
126126

127127
list_templates = apiclient.listTemplates(cmd)
128128

129+
assert len(list_templates) > 0
129130
for template in list_templates:
130131
if template.ostypeid == ostypeid:
131132
return template

0 commit comments

Comments
 (0)