summaryrefslogtreecommitdiffstats
path: root/appc-config/appc-encryption-tool
diff options
context:
space:
mode:
authorkusuma kumari M <km583p@att.com>2017-11-21 12:06:29 -0500
committerPatrick Brady <pb071s@att.com>2017-11-21 18:25:19 +0000
commit322cee74e47be24a8001e89d5f3e268efff2245f (patch)
treed02c2beb9d345401dda46c137eeb669a6c198f26 /appc-config/appc-encryption-tool
parentd46ebc90676ca287b167de7991d4c05ce321bbc2 (diff)
Bug Fixes in DG's chef ,Ansible and Encry tool
Issue-ID: APPC-320 Change-Id: I7ba57aa0018fa415987dee98d8d4d8a21453dbd0 Signed-off-by: kusuma kumari M <km583p@att.com>
Diffstat (limited to 'appc-config/appc-encryption-tool')
-rw-r--r--appc-config/appc-encryption-tool/provider/src/main/java/org/openecomp/appc/encryptiontool/wrapper/WrapperEncryptionTool.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/appc-config/appc-encryption-tool/provider/src/main/java/org/openecomp/appc/encryptiontool/wrapper/WrapperEncryptionTool.java b/appc-config/appc-encryption-tool/provider/src/main/java/org/openecomp/appc/encryptiontool/wrapper/WrapperEncryptionTool.java
index cf596e99e..37e362511 100644
--- a/appc-config/appc-encryption-tool/provider/src/main/java/org/openecomp/appc/encryptiontool/wrapper/WrapperEncryptionTool.java
+++ b/appc-config/appc-encryption-tool/provider/src/main/java/org/openecomp/appc/encryptiontool/wrapper/WrapperEncryptionTool.java
@@ -74,9 +74,9 @@ public class WrapperEncryptionTool {
String setClause = " password = ? ";
String getselectData = " * ";
DBResourceManager dbResourceManager = null;
- try (CachedRowSet data = DbServiceUtil.getData(Constants.DEVICE_AUTHENTICATION, argList,
- Constants.SCHEMA_SDNCTL, getselectData, clause);) {
+ try {
dbResourceManager = DbServiceUtil.initDbLibService();
+ CachedRowSet data = DbServiceUtil.getData(Constants.DEVICE_AUTHENTICATION, argList,Constants.SCHEMA_SDNCTL, getselectData, clause);
while (data.next()) {
rowCount++;