aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src/main/java
diff options
context:
space:
mode:
authorpriyanshu <pagarwal@amdocs.com>2019-04-10 12:18:24 +0530
committerpriyanshu <pagarwal@amdocs.com>2019-04-10 12:20:24 +0530
commitab5c816e1578d8f0dba231e0026e5175a84c31c3 (patch)
tree017b6e114b7b22b91bc46bd6601a7ad618bd4594 /catalog-model/src/main/java
parentd9c0322b76c48e5f78158cb1a44da7aac9beb2a2 (diff)
Tosca artifacts - Error 500
Tosca artifacts - Error 500 - Service proxy with WF assigned Change-Id: I1d75c0b9980ab42c7c825e4423ff4994600dd6fa Issue-ID: SDC-2232 Signed-off-by: priyanshu <pagarwal@amdocs.com>
Diffstat (limited to 'catalog-model/src/main/java')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java8
1 files changed, 4 insertions, 4 deletions
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<ImmutablePair<TopologyTemplate, String>, StorageOperationStatus> addServiceInstanceInterfacesToProxyServiceInstance(TopologyTemplate updatedContainer, ComponentInstance componentInstance) {
Map<String, Object> interfaces = componentInstance.getInterfaces();
- if(interfaces != null && !interfaces.isEmpty()) {
+ if(MapUtils.isNotEmpty(interfaces)){
Map<String, InterfaceDataDefinition> 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<String, MapInterfaceDataDefinition> 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) {