mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5113: temporary fix to return first template in the list
This commit is contained in:
parent
d38cab879b
commit
6338db1f9a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue