From 0b017e8dfc192899166798a511bbf768ea4f732f Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Fri, 24 Feb 2017 09:01:30 -0500 Subject: [PATCH] Fixed bug with config parameter map on nsd when no request or source is present Signed-off-by: Laurence Maultsby --- .../ConfigPrimitiveParameters/ConfigPrimitiveParameters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js b/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js index 4c7bbdde9..8feee342e 100644 --- a/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js +++ b/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js @@ -341,8 +341,8 @@ function constructRequestSourceData(containers) { function constructVnfdMap(vnfdData, vnfd) { let data = { - requests: vnfd['config-parameter']['config-parameter-request'], - sources: vnfd['config-parameter']['config-parameter-source'] + requests: vnfd['config-parameter'] && vnfd['config-parameter']['config-parameter-request'], + sources: vnfd['config-parameter'] && vnfd['config-parameter']['config-parameter-source'] }; vnfdData.vnfdRefs[vnfd.id] = _.merge(vnfdData.vnfdRefs[vnfd.id], data); } -- 2.25.1