aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2016-10-25 20:29:17 +0800
committerLuji7 <lu.ji3@zte.com.cn>2016-10-25 20:29:17 +0800
commit468dd87b92a9f7d811fcf4c177dfde13bdc22089 (patch)
tree9b2e92c4160eb472a9949bfff76676df78e00223 /openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr
parentb7299a3f95b764eefd08c059efce06a0dc7675f5 (diff)
Issue#GSO-51 fix request body error
Change-Id: I1cbd15aed2930dc17982f13d326fe1a17addac13 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr')
-rw-r--r--openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js16
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 81451191..fc9ffc4e 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",