diff --git a/software/scripts/deploy-precheck b/software/scripts/deploy-precheck index 07ce7ed5..bffabae5 100644 --- a/software/scripts/deploy-precheck +++ b/software/scripts/deploy-precheck @@ -146,12 +146,6 @@ class HealthCheck(object): success = False health_ok = health_ok and success - # check installed license - success = self._check_license(self._major_release) - output += 'Installed license is valid: [%s]\n' \ - % (HealthCheck.SUCCESS_MSG if success else HealthCheck.FAIL_MSG) - health_ok = health_ok and success - return health_ok, output @@ -259,6 +253,13 @@ class UpgradeHealthCheck(HealthCheck): % (HealthCheck.SUCCESS_MSG if success else HealthCheck.FAIL_MSG) health_ok = health_ok and success + # check installed license + # NOTE(nicodemos): We just need to check the license for major release + success = self._check_license(self._major_release) + output += 'Installed license is valid: [%s]\n' \ + % (HealthCheck.SUCCESS_MSG if success else HealthCheck.FAIL_MSG) + health_ok = health_ok and success + return health_ok, output def run_health_check_in_from_release(self):