shwstppr commented on code in PR #8142:
URL: https://github.com/apache/cloudstack/pull/8142#discussion_r1384753082
##########
engine/storage/image/src/main/java/org/apache/cloudstack/storage/image/TemplateDataFactoryImpl.java:
##########
@@ -244,7 +246,7 @@ public TemplateInfo
getReadyBypassedTemplateOnPrimaryStore(long templateId, Long
if (poolId == null) {
//Get ISO from existing pool ref
HostVO host = hostDao.findById(hostId);
- List<StoragePoolVO> pools =
getStoragePoolsFromClusterOrZone(host.getClusterId(), host.getDataCenterId(),
host.getHypervisorType());
+ List<StoragePoolVO> pools =
getStoragePoolsFromClusterOrZoneOrLocal(host.getClusterId(),
host.getDataCenterId(), host.getHypervisorType(), hostId);
Review Comment:
Refactored
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]