mirror of https://github.com/apache/cloudstack.git
api: Fix list templates when no secondary stores present (#5468)
This commit is contained in:
parent
22a0c0a46c
commit
93150f465b
|
|
@ -427,7 +427,9 @@ public class TemplateDataStoreDaoImpl extends GenericDaoBase<TemplateDataStoreVO
|
|||
sc.setParameters("template_id", templateId);
|
||||
sc.setParameters("download_state", Status.BYPASSED);
|
||||
sc.setParameters("destroyed", false);
|
||||
sc.setParameters("storeids", storeIds);
|
||||
if (storeIds != null && storeIds.length > 0) {
|
||||
sc.setParameters("storeids", storeIds);
|
||||
}
|
||||
return search(sc, null);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue