summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2016-10-27 16:56:17 +0800
committerLuji7 <lu.ji3@zte.com.cn>2016-10-27 16:56:17 +0800
commit04a10aa5b5a86db5ad7730b33d1fcd5b5b7e8010 (patch)
tree3b5a9309e5014f6f0df53a7099450d0e887b9792 /openo-portal/portal-lifecyclemgr
parentabe9f53436ef47d6d5bf1485fc5ddf53cae8850f (diff)
Fix Issue#GSO-54
Change-Id: Icd833b57dfa9354c3211cd26fdf4b4a16cd4f223 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr')
-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 1bf0fee8..c7253940 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
@@ -185,7 +185,7 @@ function fetchGsoNestingTemplateParameters(templateId) {
nestingParasAggregatation.notify(oneNodeParameters);
});
serviceTemplates.forEach(function(serviceTemplate) {
- if(serviceTemplate === undefined || serviceTemplate.inputs === undefined || serviceTemplate.csarId === undefined)
+ if(serviceTemplate === null || serviceTemplate === undefined || serviceTemplate.inputs === undefined || serviceTemplate.csarId === undefined)
{
nodeAggregatation.notify([]);
return;
@@ -409,7 +409,7 @@ function createGsoServiceInstance(gatewayService, serviceInstance, serviceTempla
'description': serviceInstance.description,
'serviceDefId': serviceTemplate.gsarId,
'templateId': serviceInstance.serviceTemplateId,
- 'templateName': serviceTemplate.templateName,
+ 'templateName': serviceTemplate.name,
'gatewayUri': gsoLcmUri,
'parameters': serviceInstance.inputParameters
}