summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/src
diff options
context:
space:
mode:
authorLuji <lu.ji3@zte.com.cn>2016-09-28 03:36:01 +0000
committerGerrit Code Review <gerrit@open-o.org>2016-09-28 03:36:01 +0000
commitb07b187780cc1cec935dcd0161abf98aeb41d56b (patch)
tree3a0069d75c203b7328b8ae28c9c251f8598d2404 /openo-portal/portal-lifecyclemgr/src
parent7a36ca606b143acde059a74f9e974849b3dedcdc (diff)
parent4f059e8395868c4b9a65fbbf6fb9320bcd5d2f59 (diff)
Merge "Fix bug, not pass serviceTemplate parameter for create instance"
Diffstat (limited to 'openo-portal/portal-lifecyclemgr/src')
-rw-r--r--openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js4
1 files changed, 2 insertions, 2 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 78923796..a47ee74e 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
@@ -46,7 +46,7 @@ lcmHandler.prototype = {
return;
}
if (serviceTemplate.csarType === 'GSAR') {
- serviceInstance.serviceInstanceId = createGsoServiceInstance(gatewayService, serviceInstance);
+ serviceInstance.serviceInstanceId = createGsoServiceInstance(gatewayService, serviceInstance, serviceTemplate);
} else if (serviceTemplate.csarType === 'NSAR' || serviceTemplate.csarType === 'NFAR') {
serviceInstance.serviceInstanceId = createNfvoServiceInstance(gatewayService, serviceInstance);
} else if (serviceTemplate.csarType === 'SSAR') {
@@ -216,7 +216,7 @@ function transformToOptions(vims) {
return options;
}
-function createGsoServiceInstance(gatewayService, serviceInstance) {
+function createGsoServiceInstance(gatewayService, serviceInstance, serviceTemplate) {
serviceInstance.serviceParameters.location = serviceInstance.vimLocation;
var gsoLcmUri = '/openoapi/lifecyclemgr/v1/services';
var parameter = {