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'] = {
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/41837?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I3020f581a908fecc01d5d255ab5991ce1652e3ec
Gerrit-Change-Number: 41837
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>