Revert "Fix for Test VM life Cycle Test suite- Failed to get Cent OS template"

This reverts commit aa4fea231d.
This commit is contained in:
sailajamada 2014-09-04 13:10:43 +05:30
parent aa4fea231d
commit 6aca8c5f39
1 changed files with 2 additions and 7 deletions

View File

@ -288,16 +288,11 @@ def get_template(
Get the Templates pertaining to the inputs provided
'''
list_templatesout = apiclient.listTemplates(cmd)
if list_templatesout is None:
return FAILED
if validateList(list_templatesout[0]) == FAIL:
if validateList(list_templatesout)[0] != PASS:
return FAILED
for template in list_templatesout:
if template.isready and template.templatetype == template_type and template.ostypename == ostype_desc:
print("found template")
if template.isready and template.templatetype == template_type:
return template
'''
Return default first template, if no template matched