Pearl1594 commented on a change in pull request #5264:
URL: https://github.com/apache/cloudstack/pull/5264#discussion_r690366058



##########
File path: 
engine/schema/src/main/java/com/cloud/upgrade/DatabaseUpgradeChecker.java
##########
@@ -364,7 +364,10 @@ public void check() {
                     return;
                 }
 
+                SystemVmTemplateRegistration.parseMetadataFile();
                 final CloudStackVersion currentVersion = 
CloudStackVersion.parse(currentVersionValue);
+                SystemVmTemplateRegistration.CS_MAJOR_VERSION  = 
String.valueOf(currentVersion.getMajorRelease()) + "." + 
String.valueOf(currentVersion.getMinorRelease());
+                SystemVmTemplateRegistration.CS_TINY_VERSION = 
String.valueOf(currentVersion.getPatchRelease());

Review comment:
       this is called at every restart / start operation - so these values will 
be available / populated




-- 
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]


Reply via email to