neutron-lib/releasenotes/notes/fix-api-list-validation-collect-duplicates-f4d45bf5d5abbdff.yaml
Harald Jensås 88b755c0e8 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
2022-01-10 14:29:24 +00:00

9 lines
259 B
YAML

---
fixes:
- |
Fixed an issue where API validation for duplicate entries in list values
would fail with a TypeError in case the values in the list was of type
``dict``.
See bug: `1956785 <https://bugs.launchpad.net/neutron/+bug/1956785>`_.