Skip to content

Commit d748e4b

Browse files
committed
systemvm-temp-registration: correctly update existing template name in config
When existing template is found for the required version then update the router hypervisor template config correctly. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 30e6c22 commit d748e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/schema/src/main/java/com/cloud/upgrade/SystemVmTemplateRegistration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ protected void updateRegisteredTemplateDetails(Long templateId, MetadataTemplate
10731073
}
10741074
Hypervisor.HypervisorType hypervisorType = templateDetails.getHypervisorType();
10751075
updateSystemVMEntries(templateId, hypervisorType);
1076-
updateConfigurationParams(hypervisorType, templateDetails.getName(), zoneId);
1076+
updateConfigurationParams(hypervisorType, templateVO.getName(), zoneId);
10771077
}
10781078

10791079
protected void updateTemplateUrlChecksumAndGuestOsId(VMTemplateVO templateVO,

0 commit comments

Comments
 (0)