laforge has submitted this change. ( 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(-)
Approvals: laforge: Looks good to me, approved Jenkins Builder: Verified
diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py index f8a854d..5ca87aa 100644 --- a/pySim/esim/saip/__init__.py +++ b/pySim/esim/saip/__init__.py @@ -1032,6 +1032,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'] = {