summaryrefslogtreecommitdiffstats
path: root/aai-core/src/main
diff options
context:
space:
mode:
authorRodrigo Lima <rodrigo.lima@yoppworks.com>2020-09-10 16:36:12 -0400
committerRodrigo Lima <rodrigo.lima@yoppworks.com>2020-09-11 10:25:22 -0400
commit623b945f2bfc3bf66ec0e24d988bdb3400e2daae (patch)
tree4912da3901d9caccb8ce3f3b8f920b1760746e49 /aai-core/src/main
parentc35c896ba3cf8ea670c9a3a87e77be0b3dedb2b3 (diff)
Update ownercheck side effect
- Use both E and both V to select owning entity Issue-ID: AAI-3176 Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com> Change-Id: I2e453dfd3c52c0de67981b8344434576fc514d0f
Diffstat (limited to 'aai-core/src/main')
-rw-r--r--aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java4
1 files 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<Vertex> 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();