summaryrefslogtreecommitdiffstats
path: root/dcae-analytics/dcae-analytics-web/src
diff options
context:
space:
mode:
authorKai <lukai@chinamobile.com>2020-01-19 16:34:54 +0800
committerLUKAI <lukai@chinamobile.com>2020-01-19 08:45:00 +0000
commit5cfa2de9371778236c1548a1961413d47abd4eb2 (patch)
tree1680664ccf2a95c27f67ae760d9b50596556e13d /dcae-analytics/dcae-analytics-web/src
parentce82435af0d8969cdec2b6457840f9175a250381 (diff)
delete the section that it always evaluate to false
Issue-ID: DCAEGEN2-2031 Signed-off-by: Kai Lu <lukai@chinamobile.com> Change-Id: I062293a1c96f609d652162676c12b80707e81162
Diffstat (limited to 'dcae-analytics/dcae-analytics-web/src')
-rw-r--r--dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/spring/ConfigBindingServiceEnvironmentPostProcessor.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/spring/ConfigBindingServiceEnvironmentPostProcessor.java b/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/spring/ConfigBindingServiceEnvironmentPostProcessor.java
index 59fca64..5fa82d6 100644
--- a/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/spring/ConfigBindingServiceEnvironmentPostProcessor.java
+++ b/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/spring/ConfigBindingServiceEnvironmentPostProcessor.java
@@ -31,7 +31,6 @@ import org.onap.dcae.analytics.model.AnalyticsProfile;
import org.onap.dcae.analytics.model.configbindingservice.ConfigBindingServiceConstants;
import org.onap.dcae.analytics.model.util.function.JsonStringToMapFunction;
import org.onap.dcae.analytics.web.config.SystemConfig;
-import org.onap.dcae.analytics.web.exception.AnalyticsValidationException;
import org.onap.dcae.analytics.web.exception.EnvironmentLoaderException;
import org.onap.dcaegen2.services.sdk.rest.services.cbs.client.api.CbsClient;
import org.onap.dcaegen2.services.sdk.rest.services.cbs.client.api.CbsClientFactory;
@@ -241,12 +240,6 @@ public class ConfigBindingServiceEnvironmentPostProcessor implements Environment
JsonElement jsonConfig = jsonObject.get(ConfigBindingServiceConstants.CONFIG);
Optional<String> configServiceJsonOptional = Optional.of(jsonConfig.toString());
- if (!configServiceJsonOptional.isPresent()) {
- final String errorMessage =
- "Unable to get fetch application configuration from config binding service";
- throw new AnalyticsValidationException(errorMessage,
- new IllegalStateException(errorMessage));
- }
// convert fetch config binding service json string to Map of property key and
// values