diff options
author | Yuli Shlosberg <ys9693@att.com> | 2018-07-08 11:50:54 +0300 |
---|---|---|
committer | Yuli Shlosberg <ys9693@att.com> | 2018-07-10 11:16:12 +0300 |
commit | b96e0da8bae19842b4eab733885775cdbfbf59fa (patch) | |
tree | a10900027cbc0b45ed9e631d34794cf5a8aa5c2a /catalog-model | |
parent | 47db64bab2f9555e9e2c7da243d6e0ddcbda4fd8 (diff) |
update dockers base version to 1.4.0
Change-Id: I6c2490ade7ff3071487be5c0e783060390e2a2f1
Issue-ID: SDC-1344
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'catalog-model')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTypeOperation.java | 5 |
1 files changed, 5 insertions, 0 deletions
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<GraphVertex, TitanOperationStatus> createdVertex = titanDao.createVertex(nodeTypeVertex); if (createdVertex.isRight()) { TitanOperationStatus status = createdVertex.right().value(); |