Bugfix, adding default values for http proxy if missing 24/116024/1
authorPatrikBuhr <patrik.buhr@est.tech>
Wed, 2 Dec 2020 14:04:57 +0000 (15:04 +0100)
committerPatrikBuhr <patrik.buhr@est.tech>
Wed, 2 Dec 2020 14:06:47 +0000 (15:06 +0100)
If the httpproxy parameters is missing in the application.yaml, the application will run and no proxies will be used.
Previously it did not start.

Change-Id: I5f532a0f106255cc3e30defc8191f674d8bf3731
Issue-ID: CCSDK-2966
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java

index d6dc397..ab3e89e 100644 (file)
@@ -65,10 +65,10 @@ public class ApplicationConfig {
     @Value("${app.webclient.trust-store}")
     private String sslTrustStore = "";
 
-    @Value("${app.webclient.http.proxy-host}")
+    @Value("${app.webclient.http.proxy-host:\"\"}")
     private String httpProxyHost = "";
 
-    @Value("${app.webclient.http.proxy-port}")
+    @Value("${app.webclient.http.proxy-port:0}")
     private int httpProxyPort = 0;
 
     private Map<String, RicConfig> ricConfigs = new HashMap<>();