aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts')
-rw-r--r--catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts4
1 files changed, 3 insertions, 1 deletions
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();