diff options
author | Vikas Varma <vv8305@att.com> | 2019-11-12 03:02:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-12 03:02:43 +0000 |
commit | fae5052f0ee55ab45c624930e3adf6ca92c73a92 (patch) | |
tree | f5a66930e2ac18f1df6593f09330b9fbceb0cd92 | |
parent | 95770308ba362273103a994d30ab8f87f8543875 (diff) | |
parent | 01e22f0171485e40f48ad4dd8090117eaf134163 (diff) |
Merge "AafClientCache.java-merge if with existing one"
-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;
|