Support env variables in svclogic.properties 84/118084/1
authorDan Timoney <dtimoney@att.com>
Thu, 18 Feb 2021 21:39:51 +0000 (16:39 -0500)
committerDan Timoney <dtimoney@att.com>
Thu, 18 Feb 2021 21:39:51 +0000 (16:39 -0500)
Use EnvProperties class to load svclogic.properties in order to
support environment variables for property values.

Change-Id: I2a0e0753ae0e067d73c298c3a18800e5d0928482
Issue-ID: SDNC-1482
Signed-off-by: Dan Timoney <dtimoney@att.com>
services/src/main/java/org/onap/ccsdk/apps/services/SvcLogicFactory.java

index 30a85ac..44c56af 100644 (file)
@@ -54,6 +54,7 @@ import org.onap.ccsdk.sli.core.sli.provider.base.SvcLogicServiceImplBase;
 import org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder;\r
 import org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils;\r
 import org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils;\r
+import org.onap.ccsdk.sli.core.utils.common.EnvProperties;\r
 import org.onap.ccsdk.sli.plugins.prop.PropertiesNode;\r
 import org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode;\r
 import org.slf4j.Logger;\r
@@ -98,7 +99,7 @@ public class SvcLogicFactory {
         }\r
         System.out.println(propPath);\r
         try (FileInputStream fileInputStream = new FileInputStream(propPath)) {\r
-          props = new Properties();\r
+          props = new EnvProperties();\r
           props.load(fileInputStream);\r
         } catch (final IOException e) {\r
           log.error("Failed to load properties for file: {}", propPath,\r