summaryrefslogtreecommitdiffstats
path: root/nokiav2/docs/sample/cbam.collectConnectionPoints.js
diff options
context:
space:
mode:
authorDenes Nemeth <denes.nemeth@nokia.com>2018-03-05 11:34:34 +0100
committerDenes Nemeth <denes.nemeth@nokia.com>2018-03-05 11:46:33 +0100
commitbe56383397388d35f41089723e912856c03f4673 (patch)
tree70fa2ec82e5de369fb7397e8b261bfcf8748282b /nokiav2/docs/sample/cbam.collectConnectionPoints.js
parent729c12f0145d4ac71e92545e7408379b48c8f389 (diff)
Fix release artifacts
Change-Id: Ic61a50d8c7b9c2121b7ebbac5324b1c2b99e1f3a Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com> Issue-ID: VFC-728
Diffstat (limited to 'nokiav2/docs/sample/cbam.collectConnectionPoints.js')
-rw-r--r--nokiav2/docs/sample/cbam.collectConnectionPoints.js16
1 files changed, 1 insertions, 15 deletions
diff --git a/nokiav2/docs/sample/cbam.collectConnectionPoints.js b/nokiav2/docs/sample/cbam.collectConnectionPoints.js
index f5cfc675..c721c935 100644
--- a/nokiav2/docs/sample/cbam.collectConnectionPoints.js
+++ b/nokiav2/docs/sample/cbam.collectConnectionPoints.js
@@ -26,21 +26,7 @@ function collectPorts(resourceModel, diff){
transformedPort.macAddress = port.attributes.mac_address;
transformedPort.serverProviderId = port.attributes.device_id;
transformedPort.networkProviderId = port.attributes.network_id;
- transformedPort.changeType = 'untouched';
- var added = contains(diff.add, path);
- var removed = contains(diff.remove, path);
- if(added && removed){
- transformedPort.changeType = "MODIFIED";
- }
- else{
- if(removed){
- transformedPort.changeType = "REMOVED";
- }
- if(added){
- transformedPort.changeType = "ADDED";
- }
- }
- if('untouched' != transformedPort.changeType && managedPort){
+ if(managedPort){
transformedPorts.push(transformedPort)
}
})