octavia/releasenotes/notes/fix-tls-container-serialization-1cb83ad4c9eca3b8.yaml
Gregory Thiemonge d25ed7aba6 Fix serialization of lists in data_models.to_dict
data_models.to_dict didn't convert values inside lists.
When serializing TLSContainer, the intermediates list that contains
bytes types wasn't converted properly.

to_dict now converts the items of a list recursively.

Add a test that checks if TLSContainer.to_dict is serializable.

Story 2009310
Task 43699

Change-Id: I3859c7fcefc89e91fdaecd139143e6a74d8b3c1b
2021-11-10 13:40:33 +01:00

7 lines
208 B
YAML

---
fixes:
- |
Fix a serialization issue when using TLSContainer with amphorav2 driver
with persistence, a list of bytes type in the data model was not correctly
converted to serializable data.