aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java
index bf899631aa..b7cc2c8bd6 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java
+++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java
@@ -442,6 +442,8 @@ public class ToscaElementLifecycleOperation extends BaseOperation {
lastCertifiedV.setVertex((JanusGraphVertex) lastCertifiedVertex);
lastCertifiedV.setUniqueId((String) janusGraphDao
.getProperty((JanusGraphVertex) lastCertifiedVertex, GraphPropertyEnum.UNIQUE_ID.getProperty()));
+ lastCertifiedV.addMetadataProperty(GraphPropertyEnum.IS_ABSTRACT,
+ (Boolean) janusGraphDao.getProperty((JanusGraphVertex) lastCertifiedVertex, GraphPropertyEnum.IS_ABSTRACT.getProperty()));
StorageOperationStatus res = updateEdgeToCatalogRoot(null, lastCertifiedV);
if (res != StorageOperationStatus.OK) {
return res;
@@ -1264,7 +1266,7 @@ public class ToscaElementLifecycleOperation extends BaseOperation {
Boolean isAbstract = (Boolean) newVersionV.getMetadataProperty(GraphPropertyEnum.IS_ABSTRACT);
if ( isAbstract == null || !isAbstract ) {
- // no new vertex, only delete previous
+ // create new vertex
JanusGraphOperationStatus
result = janusGraphDao
.createEdge(catalogV, newVersionV, EdgeLabelEnum.CATALOG_ELEMENT, null);