Skip to content

Commit 0446650

Browse files
authored
fix template version
1 parent cf0519a commit 0446650

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ protected void doUpgrades(GlobalLock lock) {
517517
final CloudStackVersion currentVersion = CloudStackVersion.parse(currentVersionValue);
518518
if (sysVmVersion.usesNewVersioning()) {
519519
SystemVmTemplateRegistration.CS_MAJOR_VERSION = String.valueOf(sysVmVersion.getMajorRelease());
520-
SystemVmTemplateRegistration.CS_TINY_VERSION = String.valueOf(sysVmVersion.getMajorRelease());
520+
SystemVmTemplateRegistration.CS_TINY_VERSION = String.valueOf(sysVmVersion.getMinorRelease());
521521
} else {
522522
SystemVmTemplateRegistration.CS_MAJOR_VERSION = String.format("%d.%d", sysVmVersion.getMajorRelease(), sysVmVersion.getMinorRelease());
523523
SystemVmTemplateRegistration.CS_TINY_VERSION = String.valueOf(sysVmVersion.getPatchRelease());

0 commit comments

Comments
 (0)