From fe25cdbf4e97fb4d3bdbb32d5b0c02b75f80ba72 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Wed, 5 Apr 2023 16:16:56 +0100 Subject: Populate Dataspace field of DataNode Issue-ID: CPS-1603 Signed-off-by: danielhanrahan Change-Id: I85aca8bccc28d36aa4cefa0a32cb9bdf2156618a --- .../main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java | 1 + 1 file changed, 1 insertion(+) (limited to 'cps-ri/src') diff --git a/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java b/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java index aa631d1b1a..369e5289b1 100644 --- a/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java +++ b/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java @@ -458,6 +458,7 @@ public class CpsDataPersistenceServiceImpl implements CpsDataPersistenceService return new DataNodeBuilder() .withXpath(fragmentEntity.getXpath()) .withLeaves(leaves) + .withDataspace(fragmentEntity.getAnchor().getDataspace().getName()) .withAnchor(fragmentEntity.getAnchor().getName()) .withChildDataNodes(childDataNodes).build(); } -- cgit 1.2.3-korg