Reviewed: https://review.opendev.org/c/openstack/neutron-lib/+/823857 Committed: https://opendev.org/openstack/neutron-lib/commit/88b755c0e86414ce8d6b57d6335d22bb892eaffb Submitter: "Zuul (22348)" Branch: master
commit 88b755c0e86414ce8d6b57d6335d22bb892eaffb Author: Harald Jensås <email address hidden> Date: Fri Jan 7 19:21:58 2022 +0100
Fix collect duplicates TypeError for dict values
The _collect_duplicates uses a set for duplicates. This does not work when the values in the list are dictionaries.
Instead of using a set, use a list and extend the condition to only add to the list if seen and not already in dups.
Closes-Bug: #1956785 Change-Id: Iad627bcfb95699febd504d7dc7fc9e8a7d813a9e
Reviewed: https:/ /review. opendev. org/c/openstack /neutron- lib/+/823857 /opendev. org/openstack/ neutron- lib/commit/ 88b755c0e86414c e8d6b57d6335d22 bb892eaffb
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 88b755c0e86414c e8d6b57d6335d22 bb892eaffb
Author: Harald Jensås <email address hidden>
Date: Fri Jan 7 19:21:58 2022 +0100
Fix collect duplicates TypeError for dict values
The _collect_duplicates uses a set for duplicates. This
does not work when the values in the list are dictionaries.
Instead of using a set, use a list and extend the condition to
only add to the list if seen and not already in dups.
Closes-Bug: #1956785 febd504d7dc7fc9 e8a7d813a9e
Change-Id: Iad627bcfb95699