lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/41837?usp=email )
Change subject: saip: ProfileElementSD: call _post_decode() when instantiating with decoded argument ......................................................................
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 --- M pySim/esim/saip/__init__.py 1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/37/41837/1
diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py index 7c6a557..de951dc 100644 --- a/pySim/esim/saip/__init__.py +++ b/pySim/esim/saip/__init__.py @@ -1027,6 +1027,7 @@ 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'] = {