CLOUDSTACK-5113: temporary fix to return first template in the list

This commit is contained in:
SrikanteswaraRao Talluri 2014-03-20 19:07:44 +05:30
parent d38cab879b
commit 6338db1f9a
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ def get_template(apiclient, zoneid, ostype, services=None,
for template in list_templates:
if template.isready and template.templatetype == templatetype:
return template
return list_templates[0]
raise Exception("Exception: Failed to find built in template which is in "
"ready state: %s" % templatetype)
return