Skip to content

Commit 71fa9ac

Browse files
srinathgitaebadirad
authored andcommitted
Fixing the hubPreInstallCheck task (#1482)
1 parent f424bd9 commit 71fa9ac

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

ml-data-hub-plugin/src/main/groovy/com/marklogic/gradle/task/PreinstallCheckTask.groovy

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ class PreinstallCheckTask extends HubTask {
2727
void runPreinstallCheck() {
2828
DataHub dh = getDataHub();
2929
def preInstallCheck = dh.runPreInstallCheck()
30-
if (preInstallCheck.get("safeToInstall") == null) {
30+
if (preInstallCheck.get("safeToInstall")) {
31+
print("PreInstall check: [PASSED]")
32+
}
33+
else {
3134
StringBuilder sb = new StringBuilder();
3235
sb.append("PreInstall Check: [FAILED]\n")
3336
.append("---------------------------------------\n")
@@ -55,11 +58,5 @@ class PreinstallCheckTask extends HubTask {
5558

5659
throw new TaskExecutionException(this, new Throwable(sb.toString()))
5760
}
58-
59-
if(preInstallCheck.get("safeToInstall")) {
60-
print("DHF is not installed. Run mlDeploy task to install DHF")
61-
} else {
62-
print("DHF Version: " + preInstallCheck.get("dhfVersion") + " is installed")
63-
}
6461
}
65-
}
62+
}

0 commit comments

Comments
 (0)