Fixed bug with config parameter map on nsd when no request or source is present
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Fri, 24 Feb 2017 14:01:30 +0000 (09:01 -0500)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Fri, 24 Feb 2017 14:01:30 +0000 (09:01 -0500)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js

index 4c7bbdd..8feee34 100644 (file)
@@ -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);
     }