mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
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…
x
Reference in New Issue
Block a user