summaryrefslogtreecommitdiffstats
path: root/dcae-analytics/dcae-analytics-tca-web
diff options
context:
space:
mode:
authorKai <lukai@chinamobile.com>2020-07-24 15:09:04 +0800
committerKai <lukai@chinamobile.com>2020-08-04 10:00:03 +0800
commita2a5c9db5025b2326ecf739de77a66f6a348a85d (patch)
tree4262f74a9d9dca348a39beb1db34917abc1ecf68 /dcae-analytics/dcae-analytics-tca-web
parent7198347a41ef8c77c9008195df84d1dfd26872a7 (diff)
policy upgrade
Issue-ID: DCAEGEN2-2198 Signed-off-by: Kai Lu <lukai@chinamobile.com> Change-Id: Idfa56412268f7e7a4682cdbba5645832b0746952
Diffstat (limited to 'dcae-analytics/dcae-analytics-tca-web')
-rw-r--r--dcae-analytics/dcae-analytics-tca-web/src/main/java/org/onap/dcae/analytics/tca/web/TcaAppProperties.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/dcae-analytics/dcae-analytics-tca-web/src/main/java/org/onap/dcae/analytics/tca/web/TcaAppProperties.java b/dcae-analytics/dcae-analytics-tca-web/src/main/java/org/onap/dcae/analytics/tca/web/TcaAppProperties.java
index d70922b..930a0a0 100644
--- a/dcae-analytics/dcae-analytics-tca-web/src/main/java/org/onap/dcae/analytics/tca/web/TcaAppProperties.java
+++ b/dcae-analytics/dcae-analytics-tca-web/src/main/java/org/onap/dcae/analytics/tca/web/TcaAppProperties.java
@@ -101,12 +101,8 @@ public class TcaAppProperties extends BaseConfigBindingServiceProperties {
*/
private String getPolicy() {
- String policies = environment.getProperty(ConfigBindingServiceConstants.WITHPOLICIES);
- if (policies == null) {
- return environment.getProperty(ConfigBindingServiceConstants.POLICY);
- }
-
- return policies;
+ String policy = environment.getProperty(ConfigBindingServiceConstants.POLICY);
+ return policy;
}