diff options
author | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-11-06 13:34:38 +0530 |
---|---|---|
committer | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-11-06 13:35:44 +0530 |
commit | 01e22f0171485e40f48ad4dd8090117eaf134163 (patch) | |
tree | 262aa38c00d383f7403f9afba7136e9a7ad83438 /cmso-topology | |
parent | 4b9d9fe184dc3e1c9e9a79014f712aee10cadae0 (diff) |
AafClientCache.java-merge if with existing one
Issue-ID: AAF-876
Change-Id: I65ff5fabfc71c4df1628611f44ed5084993e4fe4
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
Diffstat (limited to 'cmso-topology')
-rwxr-xr-x | cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafClientCache.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafClientCache.java b/cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafClientCache.java index 1b2facb..d0ccc13 100755 --- a/cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafClientCache.java +++ b/cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafClientCache.java @@ -138,13 +138,11 @@ public class AafClientCache { cacheAge = now;
}
permissions = cache.get(getCacheKey(auth));
- if (permissions == null) {
- if (!auth.get("password").equals("")) {
- permissions = getPermissionsFromAaf(auth);
+ if ((permissions == null)&&(!auth.get("password").equals(""))) {
+ permissions = getPermissionsFromAaf(auth);
if (permissions != null) {
cache.put(getCacheKey(auth), permissions);
}
- }
}
}
return permissions;
|