diff options
author | Luji7 <lu.ji3@zte.com.cn> | 2016-10-27 13:52:01 +0800 |
---|---|---|
committer | Luji7 <lu.ji3@zte.com.cn> | 2016-10-27 13:52:01 +0800 |
commit | 5b9935984e41e4ff3df4655060e4669cc572bc23 (patch) | |
tree | 198688e3471fd5282a313f45c8e3091a1569884f /openo-portal/portal-lifecyclemgr/src/main | |
parent | 29ecef3228539d51ebf3b998f3a9aa3eca95edd7 (diff) |
Fix Issue#GSO-54
Change-Id: I5e2f73810dd3e1aa47b46b487a4894a1d98129ef
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr/src/main')
-rw-r--r-- | openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js | 5 |
1 files changed, 5 insertions, 0 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 7dc4279a..61f965fc 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 @@ -184,6 +184,11 @@ function fetchGsoNestingTemplateParameters(templateId) { nestingParasAggregatation.notify(oneNodeParameters); }); serviceTemplates.forEach(function(serviceTemplate) { + if(serviceTemplate === undefined || serviceTemplate.inputs === undefined || serviceTemplate.csarId === undefined) + { + nodeAggregatation.notify([]); + return; + } var inputs = serviceTemplate.inputs.map(function(input) { input.name = nodeTemplate.type + '.' + input.name; return input; |