[VOL-2262] Fix list logical devices in single core deployment

Change-Id: I5b0416a19e119f40ae4e4fdee46eea393f251a3c
diff --git a/rw_core/core/grpc_nbi_api_handler.go b/rw_core/core/grpc_nbi_api_handler.go
index 0aa74f5..34e9058 100755
--- a/rw_core/core/grpc_nbi_api_handler.go
+++ b/rw_core/core/grpc_nbi_api_handler.go
@@ -378,11 +378,11 @@
 		} else {
 			defer txn.Close()
 		}
-	}
-	if handler.isOFControllerRequest(ctx) {
-		//	Since an OF controller is only interested in the set of logical devices managed by thgis Core then return
-		//	only logical devices managed/monitored by this Core.
-		return handler.logicalDeviceMgr.listManagedLogicalDevices()
+		if handler.isOFControllerRequest(ctx) {
+			//	Since an OF controller is only interested in the set of logical devices managed by thgis Core then return
+			//	only logical devices managed/monitored by this Core.
+			return handler.logicalDeviceMgr.listManagedLogicalDevices()
+		}
 	}
 	return handler.logicalDeviceMgr.listLogicalDevices()
 }