summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();