Damans227 commented on code in PR #12877:
URL: https://github.com/apache/cloudstack/pull/12877#discussion_r3085216186
##########
server/src/main/java/com/cloud/template/HypervisorTemplateAdapter.java:
##########
@@ -294,7 +294,10 @@ protected void createTemplateWithinZones(TemplateProfile
profile, VMTemplateVO t
List<DataStore> imageStores =
getImageStoresThrowsExceptionIfNotFound(zoneId, profile);
standardImageStoreAllocation(imageStores, template);
} else {
- validateSecondaryStorageAndCreateTemplate(List.of(imageStore),
template, null);
+ int replicaLimit = isPrivateTemplate(template)
+ ? TemplateManager.PrivateTemplateSecStorageCopy.value()
+ : TemplateManager.PublicTemplateSecStorageCopy.value();
Review Comment:
Looks like a valid concer! Will check shortly.
--
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]