diff options
author | Luji7 <lu.ji3@zte.com.cn> | 2016-10-25 20:29:17 +0800 |
---|---|---|
committer | Luji <lu.ji3@zte.com.cn> | 2016-10-25 12:39:43 +0000 |
commit | 39981874814ccd4cfd1f5394e135398c31bdb986 (patch) | |
tree | 293e8893284e58ba4007cdc498f9acbbccb2b67c | |
parent | c494b5a63c2677a2970f7cc148df44316c4f4bb1 (diff) |
Issue#GSO-51 fix request body error
Change-Id: I1cbd15aed2930dc17982f13d326fe1a17addac13
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
(cherry picked from commit 468dd87b92a9f7d811fcf4c177dfde13bdc22089)
-rw-r--r-- | openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js | 16 |
1 files changed, 9 insertions, 7 deletions
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", |