Abort Detect if Polaris configured but connection fails (regardless of the value of detect.ignore.connection.failures)
@@ -86,15 +86,10 @@ public class ProductBoot {
if (polarisConnectivityResult.isSuccessfullyConnected()) {
polarisRunData = new PolarisRunData(polarisDecision.getPolarisServerConfig());
- } else {
- if (detectConfiguration.getBooleanProperty(DetectProperty.DETECT_IGNORE_CONNECTION_FAILURES, PropertyAuthority.None)) {
- logger.info("Failed to connect to Polaris: " + polarisConnectivityResult.getFailureReason());
- logger.info(String.format("%s is set to 'true' so Detect will simply disable the Polaris product.", DetectProperty.DETECT_IGNORE_CONNECTION_FAILURES.getPropertyName()));
} else {
throw new DetectUserFriendlyException("Could not communicate with Polaris: " + polarisConnectivityResult.getFailureReason(), ExitCodeType.FAILURE_POLARIS_CONNECTIVITY);
}
}
- }
if (detectConfiguration.getBooleanProperty(DetectProperty.DETECT_TEST_CONNECTION, PropertyAuthority.None)) {
logger.info(String.format("%s is set to 'true' so Detect will not run.", DetectProperty.DETECT_TEST_CONNECTION.getPropertyName()));
