pySim.esim.saip.ProfileElementGFM: Initialize 'fileManagementCMD'

When constructing a ProfileElmentGFM from scratch, initialize the
decoded['fileManagementCMD'], as it is a mandatory member during
ASN.1 encode.

Change-Id: Iaae99348d36b7f0c739daf039d6ea2305b7ca9db
This commit is contained in:
Harald Welte
2024-09-01 19:33:02 +02:00
parent 981220641d
commit b22bab0b20

View File

@@ -622,6 +622,9 @@ class ProfileElementGFM(ProfileElement):
# indexed by PE-Name
self.files = {}
self.tdef = asn1.types['ProfileElement'].type.name_to_member[self.type]
if decoded:
return
self.decoded['fileManagementCMD'] = []
def supports_file_for_path(self, path: Path, adf: Optional[str] = None) -> bool:
"""Does this ProfileElement support a file of given path?"""