From 1cb3596e003729d9fcbd2c5b3d426db6e575c7ce Mon Sep 17 00:00:00 2001 From: vasraz Date: Wed, 27 Jul 2022 11:44:52 +0100 Subject: Support Inputs during Import Service Signed-off-by: Vasyl Razinkov Change-Id: Ifc761d607a5d3c11187486fec3133be44c2d38b0 Issue-ID: SDC-4082 --- .../operations/TopologyTemplateOperation.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/TopologyTemplateOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/TopologyTemplateOperation.java index 91176a9ecb..4995bdc642 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/TopologyTemplateOperation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/TopologyTemplateOperation.java @@ -152,7 +152,7 @@ public class TopologyTemplateOperation extends ToscaElementOperation { return Either.right(associateInstProperties); } StorageOperationStatus associateInstInputs = associateInstInputsToComponent(topologyTemplateVertex, topologyTemplate); - if (associateInstProperties != StorageOperationStatus.OK) { + if (associateInstInputs != StorageOperationStatus.OK) { return Either.right(associateInstInputs); } StorageOperationStatus associateInstGroups = associateInstGroupsToComponent(topologyTemplateVertex, topologyTemplate); @@ -184,7 +184,7 @@ public class TopologyTemplateOperation extends ToscaElementOperation { return Either.right(associateInterfaces); } StorageOperationStatus associatePathProperties = associateForwardingPathToResource(topologyTemplateVertex, topologyTemplate); - if (associateCapProperties != StorageOperationStatus.OK) { + if (associatePathProperties != StorageOperationStatus.OK) { return Either.right(associatePathProperties); } final StorageOperationStatus associateServiceToModel = associateComponentToModel(topologyTemplateVertex, topologyTemplate, @@ -386,15 +386,15 @@ public class TopologyTemplateOperation extends ToscaElementOperation { } public StorageOperationStatus associateInstInterfacesToComponent( - GraphVertex nodeTypeVertex, - Map instInterfaces + GraphVertex nodeTypeVertex, + Map instInterfaces ) { if (instInterfaces != null && !instInterfaces.isEmpty()) { Either associateElementToData = associateElementToData( - nodeTypeVertex, - VertexTypeEnum.INST_INTERFACES, - EdgeLabelEnum.INST_INTERFACES, - instInterfaces); + nodeTypeVertex, + VertexTypeEnum.INST_INTERFACES, + EdgeLabelEnum.INST_INTERFACES, + instInterfaces); if (associateElementToData.isRight()) { return associateElementToData.right().value(); } -- cgit 1.2.3-korg