From b96e0da8bae19842b4eab733885775cdbfbf59fa Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Sun, 8 Jul 2018 11:50:54 +0300 Subject: update dockers base version to 1.4.0 Change-Id: I6c2490ade7ff3071487be5c0e783060390e2a2f1 Issue-ID: SDC-1344 Signed-off-by: Yuli Shlosberg --- .../sdc/be/model/jsontitan/operations/NodeTypeOperation.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'catalog-model/src/main/java') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTypeOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTypeOperation.java index 77677a9245..d9318f5510 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTypeOperation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTypeOperation.java @@ -83,7 +83,10 @@ public class NodeTypeOperation extends ToscaElementOperation { nodeType.generateUUID(); + //Set missing props such as names, default lifecycle state, dates etc... nodeType = getResourceMetaDataFromResource(nodeType); + + //Set unique ID String resourceUniqueId = nodeType.getUniqueId(); if (resourceUniqueId == null) { resourceUniqueId = UniqueIdBuilder.buildResourceUniqueId(); @@ -100,9 +103,11 @@ public class NodeTypeOperation extends ToscaElementOperation { derivedResources = derivedResourcesResult.left().value(); } + //Create Vertext Object and fill according to given NodeType GraphVertex nodeTypeVertex = new GraphVertex(VertexTypeEnum.NODE_TYPE); fillToscaElementVertexData(nodeTypeVertex, nodeType, JsonParseFlagEnum.ParseAll); + //Create Node Type in Graph Either createdVertex = titanDao.createVertex(nodeTypeVertex); if (createdVertex.isRight()) { TitanOperationStatus status = createdVertex.right().value(); -- cgit 1.2.3-korg