From cef866edcf8a14ede6762297dd9ab04b1f3d0375 Mon Sep 17 00:00:00 2001 From: aribeiro Date: Fri, 15 Oct 2021 13:41:39 +0100 Subject: Support get_input for complex data types Issue-ID: SDC-3760 Signed-off-by: aribeiro Change-Id: I68ceaa47012186533a90f06c2688454f5dde799b --- .../properties-assignment/properties-assignment.page.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts') diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts index 8e483ea5ef..09fd888755 100644 --- a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts +++ b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts @@ -527,7 +527,9 @@ export class PropertiesAssignmentComponent { propertyInputDetail.inputName = selectInputValue.name; propertyInputDetail.inputType = selectInputValue.type; property.getInputValues.push(propertyInputDetail); - property.value = '{"get_input":"' + selectInputValue.name + '"}'; + property.value = selectInputValue.name.indexOf("->") !== -1 + ? '{"get_input":[' + selectInputValue.name.replace("->", ", ") + ']}' + : '{"get_input":"' + selectInputValue.name+ '"}' ; property.toscaGetFunctionType = ToscaGetFunctionType.GET_INPUT; this.updateInstancePropertiesWithInput(checkedProperties, selectedInstanceData); modal.instance.close(); -- cgit 1.2.3-korg