From 322cee74e47be24a8001e89d5f3e268efff2245f Mon Sep 17 00:00:00 2001 From: kusuma kumari M Date: Tue, 21 Nov 2017 12:06:29 -0500 Subject: Bug Fixes in DG's chef ,Ansible and Encry tool Issue-ID: APPC-320 Change-Id: I7ba57aa0018fa415987dee98d8d4d8a21453dbd0 Signed-off-by: kusuma kumari M --- .../openecomp/appc/encryptiontool/wrapper/WrapperEncryptionTool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'appc-config/appc-encryption-tool/provider/src') 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++; -- cgit 1.2.3-korg