mirror of https://github.com/apache/cloudstack.git
multiple secondary storage fix
This commit is contained in:
parent
b963429063
commit
8cdd8a01b1
|
|
@ -486,13 +486,6 @@ public class DownloadMonitorImpl implements DownloadMonitor {
|
|||
public void handleTemplateSync(long dcId) {
|
||||
List<HostVO> ssHosts = _hostDao.listSecondaryStorageHosts(dcId);
|
||||
for ( HostVO ssHost : ssHosts ) {
|
||||
Long hostId = ssHost.getId();
|
||||
List<VMTemplateHostVO> ths = _vmTemplateHostDao.listByHostId(hostId);
|
||||
Map<String, TemplateInfo> templateInfos = new HashMap<String, TemplateInfo>();
|
||||
for ( VMTemplateHostVO th : ths ) {
|
||||
String tname = _templateDao.findById(th.getTemplateId()).getUniqueName();
|
||||
templateInfos.put(tname, null);
|
||||
}
|
||||
handleTemplateSync(ssHost);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue