summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-11-01 09:27:57 -0500
committerInstrumental <jonathan.gathman@att.com>2018-11-01 09:28:03 -0500
commitf3f17a63fec476c0aea5c67153d02fa2dd8897eb (patch)
treedc0139dadbd05af56bb52e2694309cacbcffe991
parent7425da5594670b182122306c70ef8846f53c175b (diff)
Fix Agent showpass
Issue-ID: AAF-601 Change-Id: Ifc1b71edad9516ef8712d93898bc78164f8efcca Signed-off-by: Instrumental <jonathan.gathman@att.com>
-rw-r--r--cadi/aaf/src/main/java/org/onap/aaf/cadi/configure/Agent.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/cadi/aaf/src/main/java/org/onap/aaf/cadi/configure/Agent.java b/cadi/aaf/src/main/java/org/onap/aaf/cadi/configure/Agent.java
index 3facc930..4a5fbd45 100644
--- a/cadi/aaf/src/main/java/org/onap/aaf/cadi/configure/Agent.java
+++ b/cadi/aaf/src/main/java/org/onap/aaf/cadi/configure/Agent.java
@@ -680,9 +680,12 @@ public class Agent {
FileInputStream fis = new FileInputStream(new File(dir,a.getNs()+".cred.props"));
try {
props.load(fis);
- fis.close();
- fis = new FileInputStream(new File(dir,a.getNs()+".chal"));
- props.load(fis);
+ File chalFile = new File(dir,a.getNs()+".chal");
+ if(chalFile.exists()) {
+ fis.close();
+ fis = new FileInputStream(chalFile);
+ props.load(fis);
+ }
} finally {
fis.close();
}