From ab5c816e1578d8f0dba231e0026e5175a84c31c3 Mon Sep 17 00:00:00 2001 From: priyanshu Date: Wed, 10 Apr 2019 12:18:24 +0530 Subject: Tosca artifacts - Error 500 Tosca artifacts - Error 500 - Service proxy with WF assigned Change-Id: I1d75c0b9980ab42c7c825e4423ff4994600dd6fa Issue-ID: SDC-2232 Signed-off-by: priyanshu --- .../sdc/be/model/jsontitan/operations/NodeTemplateOperation.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java index 3bb5e1348c..de396b4c1a 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java @@ -379,17 +379,17 @@ public class NodeTemplateOperation extends BaseOperation { private Either, StorageOperationStatus> addServiceInstanceInterfacesToProxyServiceInstance(TopologyTemplate updatedContainer, ComponentInstance componentInstance) { Map interfaces = componentInstance.getInterfaces(); - if(interfaces != null && !interfaces.isEmpty()) { + if(MapUtils.isNotEmpty(interfaces)){ Map interfacesMap = interfaces.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, e -> (InterfaceDataDefinition) e.getValue())); - MapInterfaceDataDefinition instIntrefaces = new MapInterfaceDataDefinition(interfacesMap); + MapInterfaceDataDefinition instInterfaces = new MapInterfaceDataDefinition(interfacesMap); Map instInterfacesMap = new HashMap<>(); - instInterfacesMap.put(componentInstance.getUniqueId(), instIntrefaces); + instInterfacesMap.put(componentInstance.getUniqueId(), instInterfaces); updatedContainer.setComponentInstInterfaces(instInterfacesMap); StorageOperationStatus status = addToscaDataDeepElementsBlockToToscaElement(updatedContainer.getUniqueId(), - EdgeLabelEnum.INST_INTERFACES, VertexTypeEnum.INST_INTERFACES, instIntrefaces, + EdgeLabelEnum.INST_INTERFACES, VertexTypeEnum.INST_INTERFACES, instInterfaces, componentInstance.getUniqueId()); if(status != StorageOperationStatus.OK) { -- cgit 1.2.3-korg