Issue-ID: SDC-3382
Change-Id: I7679cd7677f9e9bb6e7c8efd8f081fba4972d1bd
Signed-off-by: zhaoxiangjun666 <xjzhaop@isoftstone.com>
attributesMap = new MapAttributesDataDefinition();
attributesMap.setMapToscaDataDefinition(entry.getValue().stream().map(AttributeDefinition::new)
- .collect(Collectors.toMap(AttributeDataDefinition::getName, Function.identity())));
+ .collect(Collectors.toMap(AttributeDataDefinition::getName, Function.identity(),(entity1,entity2) -> entity1)));
topologyTemplate.getInstAttributes().put(entry.getKey(), attributesMap);
}