Skip to content

Commit

Permalink
MID-9164 fixed incorrect warnings in pre-upgrade-check action
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Oct 3, 2023
1 parent 04c2644 commit 953707d
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,18 @@ public ActionResult<Boolean> execute() throws Exception {
return new ActionResult<>(false, 1);
}

if (!options.isSkipNodesVersionCheck() && !checkNodesVersion(repository)) {
return new ActionResult<>(false, 2);
if (!options.isSkipNodesVersionCheck()) {
if (!checkNodesVersion(repository)) {
return new ActionResult<>(false, 2);
}
} else {
log.warn("Skipping nodes version check");
}

if (!options.isSkipDatabaseVersionCheck() && !checkDatabaseSchemaVersion(repository)) {
return new ActionResult<>(false, 3);
if (!options.isSkipDatabaseVersionCheck()) {
if (!checkDatabaseSchemaVersion(repository)) {
return new ActionResult<>(false, 3);
}
} else {
log.warn("Skipping database schema version check");
}
Expand Down

0 comments on commit 953707d

Please sign in to comment.