summaryrefslogtreecommitdiffstats
path: root/cps-ri
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2023-04-11 16:26:59 +0000
committerGerrit Code Review <gerrit@onap.org>2023-04-11 16:26:59 +0000
commita05d9e732fabb2496012e0ae13d9bf61b671ee5d (patch)
treeb89e9a6f7680b5e29bd40fdd8ecc4541e62b38a8 /cps-ri
parent1277790ff4aa87fbf93dbf485c49b10eba51cbf7 (diff)
parentfe25cdbf4e97fb4d3bdbb32d5b0c02b75f80ba72 (diff)
Merge "Populate Dataspace field of DataNode"
Diffstat (limited to 'cps-ri')
-rw-r--r--cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java1
1 files changed, 1 insertions, 0 deletions
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();
}