aboutsummaryrefslogtreecommitdiffstats
path: root/appc-inbound/appc-artifact-handler/provider/src
diff options
context:
space:
mode:
authorDilip kumar Pampana <dp583p@att.com>2018-01-09 14:51:52 -0500
committerPatrick Brady <pb071s@att.com>2018-01-09 22:31:54 +0000
commit939d33e7468582edf643de2d66f06fa4b638ed67 (patch)
tree08375caaa42199e2ed95dee33d33d36703621f59 /appc-inbound/appc-artifact-handler/provider/src
parentc6cb076e759b2e2c3e55867992500ea593001bca (diff)
Artifact Handler Updates
replaced Constants.APPC_CONFIG_DIR with System.getenv("APPC_CONFIG_DIR") in dbServices.java Issue-ID: APPC-350 Change-Id: Ib0f3ec47311848a5a75525d0e35361485cc63956 Signed-off-by: Dilip kumar Pampana <dp583p@att.com>
Diffstat (limited to 'appc-inbound/appc-artifact-handler/provider/src')
-rw-r--r--appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/dbservices/DBService.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/dbservices/DBService.java b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/dbservices/DBService.java
index bd2f6dfff..278808498 100644
--- a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/dbservices/DBService.java
+++ b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/dbservices/DBService.java
@@ -259,8 +259,7 @@ public class DBService {
String protocol = context.getAttribute(SdcArtifactHandlerConstants.DEVICE_PROTOCOL);
String action = context.getAttribute(SdcArtifactHandlerConstants.ACTION);
String vnf_type = context.getAttribute(SdcArtifactHandlerConstants.VNF_TYPE);
- PropertiesConfiguration conf = new PropertiesConfiguration(
- SdcArtifactHandlerConstants.APPC_CONFIG_DIR + "/appc_southbound.properties");
+ PropertiesConfiguration conf = new PropertiesConfiguration(System.getenv("APPC_CONFIG_DIR")+"/appc_southbound.properties");
String property ="";
if (StringUtils.isNotBlank(vnf_type)) {
@@ -330,8 +329,7 @@ public class DBService {
&& ((protocol == null) || ("".equals(protocol))))
throw new SvcLogicException(
"Error While processing refernce File as few or all of parameters VNF_TYPE,PROTOCOL,ACTION are missing ");
- PropertiesConfiguration conf = new PropertiesConfiguration(
- SdcArtifactHandlerConstants.APPC_CONFIG_DIR + "/appc_southbound.properties");
+ PropertiesConfiguration conf = new PropertiesConfiguration(System.getenv("APPC_CONFIG_DIR")+"/appc_southbound.properties");
log.info("is Updating to southbound properties : "+isUpdate);
if (conf.containsKey(property + "." + "user")) {
if(user!=null && !user.isEmpty())