From 52a039956575a575b804d6bf72039feaabecdfc3 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Fri, 3 Dec 2021 11:41:08 +0000 Subject: Fix set value of custom data type Signed-off-by: MichaelMorris Issue-ID: SDC-3799 Change-Id: I68c7e67080edcc912cc882198192802c96a27f9b --- .../sdc/be/components/impl/ComponentInstanceBusinessLogic.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'catalog-be/src') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java index f4daea703f..ebfb4c5851 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java @@ -1954,7 +1954,7 @@ public class ComponentInstanceBusinessLogic extends BaseBusinessLogic { ComponentInstanceProperty componentInstanceProperty = validatePropertyExistsOnComponent(property, containerComponent, foundResourceInstance); String propertyParentUniqueId = property.getParentUniqueId(); - Either updatedPropertyValue = updatePropertyObjectValue(property, false); + Either updatedPropertyValue = updatePropertyObjectValue(property, false, containerComponent.getModel()); if (updatedPropertyValue.isRight()) { log.error("Failed to update property object value of property: {}", property); @@ -2265,8 +2265,8 @@ public class ComponentInstanceBusinessLogic extends BaseBusinessLogic { return false; } - private Either updatePropertyObjectValue(T property, boolean isInput) { - final Map allDataTypes = componentsUtils.getAllDataTypes(applicationDataTypeCache, property.getModel()); + private Either updatePropertyObjectValue(T property, boolean isInput, final String model) { + final Map allDataTypes = componentsUtils.getAllDataTypes(applicationDataTypeCache, model); String innerType = null; String propertyType = property.getType(); ToscaPropertyType type = ToscaPropertyType.isValidType(propertyType); -- cgit 1.2.3-korg