Skip to content

Commit 027172a

Browse files
committed
use security version after cutover
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent fca15c8 commit 027172a

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
@@ -516,7 +516,7 @@ protected void doUpgrades(GlobalLock lock) {
516516
final CloudStackVersion sysVmVersion = CloudStackVersion.parse(csVersion);
517517
final CloudStackVersion currentVersion = CloudStackVersion.parse(currentVersionValue);
518518
SystemVmTemplateRegistration.CS_MAJOR_VERSION = String.format("%d.%d", sysVmVersion.getMajorRelease(), sysVmVersion.getMinorRelease());
519-
SystemVmTemplateRegistration.CS_TINY_VERSION = sysVmVersion.usesNewVersioning() ? "0" : String.valueOf(sysVmVersion.getPatchRelease());
519+
SystemVmTemplateRegistration.CS_TINY_VERSION = String.valueOf(sysVmVersion.usesNewVersioning() ? sysVmVersion.getSecurityRelease() : sysVmVersion.getPatchRelease());
520520

521521
LOGGER.info("DB version = {} Code Version = {}", dbVersion, currentVersion);
522522

0 commit comments

Comments
 (0)