From 623b945f2bfc3bf66ec0e24d988bdb3400e2daae Mon Sep 17 00:00:00 2001 From: Rodrigo Lima Date: Thu, 10 Sep 2020 16:36:12 -0400 Subject: [PATCH] Update ownercheck side effect - Use both E and both V to select owning entity Issue-ID: AAI-3176 Signed-off-by: Rodrigo Lima Change-Id: I2e453dfd3c52c0de67981b8344434576fc514d0f --- .../main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java b/aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java index a32c4ecc..061c6409 100644 --- a/aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java +++ b/aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java @@ -48,8 +48,8 @@ public class OwnerCheck extends SideEffect { if (serializer.getGroups() != null && !serializer.getGroups().isEmpty()) { List owningEntity = self.graph().traversal() .V(self) - .inE("org.onap.relationships.inventory.BelongsTo") - .outV() + .bothE("org.onap.relationships.inventory.BelongsTo") + .otherV() .has("aai-node-type", "owning-entity") .toList(); -- 2.16.6