saip: ProfileElementSD: call _post_decode() when instantiating with decoded argument

Otherwise self.keys is not generated from the given data and encoding will fail.

Change-Id: I3020f581a908fecc01d5d255ab5991ce1652e3ec
This commit is contained in:
Alexander Couzens
2026-01-14 01:58:37 +01:00
committed by laforge
parent 2e7944cc98
commit 8557ec86be

View File

@@ -1032,6 +1032,7 @@ class ProfileElementSD(ProfileElement):
def __init__(self, decoded: Optional[dict] = None, **kwargs): def __init__(self, decoded: Optional[dict] = None, **kwargs):
super().__init__(decoded, **kwargs) super().__init__(decoded, **kwargs)
if decoded: if decoded:
self._post_decode()
return return
# provide some reasonable defaults for a MNO-SD # provide some reasonable defaults for a MNO-SD
self.decoded['instance'] = { self.decoded['instance'] = {