projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coverity CWE 688: Function Call With Incorrect Variable or Reference as Argument
[osm/RO.git]
/
RO-SDN-dynpac
/
osm_rosdn_dynpac
/
wimconn_dynpac.py
diff --git
a/RO-SDN-dynpac/osm_rosdn_dynpac/wimconn_dynpac.py
b/RO-SDN-dynpac/osm_rosdn_dynpac/wimconn_dynpac.py
index
dfd4b35
..
a2bd8d7
100644
(file)
--- a/
RO-SDN-dynpac/osm_rosdn_dynpac/wimconn_dynpac.py
+++ b/
RO-SDN-dynpac/osm_rosdn_dynpac/wimconn_dynpac.py
@@
-228,9
+228,11
@@
class DynpacConnector(SdnConnectorBase):
for connection_point in connection_points:
endpoint_id = connection_point.get(self.__SERVICE_ENDPOINT_PARAM)
for connection_point in connection_points:
endpoint_id = connection_point.get(self.__SERVICE_ENDPOINT_PARAM)
- port = filter(
- lambda x: x.get(self.__WAN_SERVICE_ENDPOINT_PARAM) == endpoint_id,
- port_mapping,
+ port = list(
+ filter(
+ lambda x: x.get(self.__WAN_SERVICE_ENDPOINT_PARAM) == endpoint_id,
+ port_mapping,
+ )
)[0]
port_info = port.get(self.__WAN_MAPPING_INFO_PARAM)
selected_ports.append(port_info)
)[0]
port_info = port.get(self.__WAN_MAPPING_INFO_PARAM)
selected_ports.append(port_info)