From 4f059e8395868c4b9a65fbbf6fb9320bcd5d2f59 Mon Sep 17 00:00:00 2001 From: Luji7 Date: Wed, 28 Sep 2016 11:27:46 +0800 Subject: Fix bug, not pass serviceTemplate parameter for create instance Change-Id: Ic3dd9856bb4e91ae3977e707737edd9ecb9208d2 Signed-off-by: Luji7 --- .../portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 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 = { -- cgit 1.2.3-korg