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:
committed by
laforge
parent
2e7944cc98
commit
8557ec86be
@@ -1032,6 +1032,7 @@ class ProfileElementSD(ProfileElement):
|
||||
def __init__(self, decoded: Optional[dict] = None, **kwargs):
|
||||
super().__init__(decoded, **kwargs)
|
||||
if decoded:
|
||||
self._post_decode()
|
||||
return
|
||||
# provide some reasonable defaults for a MNO-SD
|
||||
self.decoded['instance'] = {
|
||||
|
||||
Reference in New Issue
Block a user