[VOL-2255] NBI unit test in rw-core
Change-Id: I356b067a82968ac339b5ccb3c38cdfe0bc28348b
diff --git a/rw_core/core/adapter_manager.go b/rw_core/core/adapter_manager.go
index 493b391..b5f0131 100644
--- a/rw_core/core/adapter_manager.go
+++ b/rw_core/core/adapter_manager.go
@@ -355,7 +355,9 @@
for deviceTypeID, adapterID := range aMgr.deviceTypeToAdapterMap {
if adapterAgent, have := aMgr.adapterAgents[adapterID]; have {
if deviceType := adapterAgent.getDeviceType(deviceTypeID); deviceType != nil {
- deviceTypes = append(deviceTypes, deviceType)
+ if deviceType.Id != SentinelDevicetypeID { // don't report the sentinel
+ deviceTypes = append(deviceTypes, deviceType)
+ }
}
}
}