From 92828f955f7c2a6d35c6969f57ffef32a691b59d Mon Sep 17 00:00:00 2001 From: Satoshi Fujii Date: Wed, 4 Nov 2020 07:14:41 +0000 Subject: Fix create list input api call failure Changed to use proper resource type in url on create list input api call to avoid component type mismatch error. Issue-ID: SDC-3336 Signed-off-by: Satoshi Fujii Change-Id: I31f4c6641df9fc067797c4a88d43789df0cf367e --- .../app/ng2/services/component-services/topology-template.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'catalog-ui/src/app/ng2/services') diff --git a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts index 1933b3dba8..175069e9a2 100644 --- a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts +++ b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts @@ -421,7 +421,7 @@ export class TopologyTemplateService { return this.http.put(this.baseUrl + component.getTypeUrl() + component.uniqueId + '/policies/' + policy.uniqueId + '/undeclare', policy) } - createListInput(componentId: string, input: any, isSelf: boolean): Observable { + createListInput(component: Component, input: any, isSelf: boolean): Observable { let inputs: any; if (isSelf) { // change componentInstanceProperties -> serviceProperties @@ -434,7 +434,7 @@ export class TopologyTemplateService { } else { inputs = input; } - return this.http.post(this.baseUrl + 'services/' + componentId + '/create/listInput', inputs); + return this.http.post(this.baseUrl + component.getTypeUrl() + component.uniqueId + '/create/listInput', inputs); } createPolicy(component: Component, policiesToCreate: InstancePropertiesAPIMap, isSelf: boolean): Observable { -- cgit 1.2.3-korg