From 39981874814ccd4cfd1f5394e135398c31bdb986 Mon Sep 17 00:00:00 2001 From: Luji7 Date: Tue, 25 Oct 2016 20:29:17 +0800 Subject: Issue#GSO-51 fix request body error Change-Id: I1cbd15aed2930dc17982f13d326fe1a17addac13 Signed-off-by: Luji7 (cherry picked from commit 468dd87b92a9f7d811fcf4c177dfde13bdc22089) --- .../src/main/webapp/lifecyclemgr/js/gsolcm.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'openo-portal') diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js index 5b2a47df..ea2f274a 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js @@ -339,13 +339,15 @@ function createGsoServiceInstance(gatewayService, serviceInstance, serviceTempla serviceInstance.inputParameters.location = serviceInstance.vimLocation; var gsoLcmUri = '/openoapi/lifecyclemgr/v1/services'; var parameter = { - 'name': serviceInstance.serviceName, - 'description': serviceInstance.description, - 'serviceDefId': serviceTemplate.gsarId, - 'templateId': serviceInstance.serviceTemplateId, - 'templateName': serviceTemplate.templateName, - 'gatewayUri': gsoLcmUri, - 'parameters': serviceInstance.inputParameters + 'service': { + 'name': serviceInstance.serviceName, + 'description': serviceInstance.description, + 'serviceDefId': serviceTemplate.gsarId, + 'templateId': serviceInstance.serviceTemplateId, + 'templateName': serviceTemplate.templateName, + 'gatewayUri': gsoLcmUri, + 'parameters': serviceInstance.inputParameters + } }; $.when($.ajax({ type: "POST", -- cgit 1.2.3-korg