diff options
Diffstat (limited to 'appc-config/appc-encryption-tool/provider/src')
-rw-r--r-- | appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/EncryptionToolDGWrapper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/EncryptionToolDGWrapper.java b/appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/EncryptionToolDGWrapper.java index 3b032d995..0910a5ba0 100644 --- a/appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/EncryptionToolDGWrapper.java +++ b/appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/EncryptionToolDGWrapper.java @@ -138,7 +138,8 @@ public class EncryptionToolDGWrapper implements SvcLogicJavaPlugin { log.info(fn + ":: Error retrieving credentials"); throw new SvcLogicException("Error retrieving credentials"); } - if (status == QueryStatus.NOT_FOUND) { + // SELECT COUNT query will return SUCCESS with a count of 0 when no data is found + if (status == QueryStatus.SUCCESS) { log.info(fn + ":: NOT_FOUND! No data found in device_authentication table for " + vnf_Type + " " + protocol + "" + action + ""); throw new SvcLogicException( |