diff options
author | Instrumental <jgonap@stl.gathman.org> | 2020-01-24 14:47:48 -0600 |
---|---|---|
committer | Instrumental <jgonap@stl.gathman.org> | 2020-01-24 14:47:54 -0600 |
commit | be1edcb6830745015f5de72e820f40f36dd571ad (patch) | |
tree | 65d10e1d54042c072d958cbb00b048553a60f893 /auth/auth-deforg | |
parent | 165e298554f06ecd0545df604e11736ebf71566d (diff) |
Fix Agent and CM Issues
Issue-ID: AAF-1067
Signed-off-by: Instrumental <jgonap@stl.gathman.org>
Change-Id: I5508edec3d63b4831d0caddd8303126956bd05a0
Diffstat (limited to 'auth/auth-deforg')
-rw-r--r-- | auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java b/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java index f1576c4f..eaa44830 100644 --- a/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java +++ b/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java @@ -120,10 +120,14 @@ public class DefaultOrgIdentity implements Identity { @Override public Identity responsibleTo() throws OrganizationException { - if ("".equals(identity.responsibleTo) && isFound()) { // cover the situation of Top Dog... reports to no-one. - return this; + if(isFound()) { + if ("".equals(identity.responsibleTo)) { // cover the situation of Top Dog... reports to no-one. + return this; + } else { + return org.getIdentity(trans, identity.responsibleTo); + } } else { - return org.getIdentity(trans, identity.responsibleTo); + throw new OrganizationException("Identity doesn't exist"); } } |