dexter has uploaded this change for review.
esipa_rest_utils: align IpaEuiccDataResponse to SGP.32 V.1.2
The ASN.1 struct IpaEuiccDataResponse has renamed the error code
member from ipaEuiccDataError to ipaEuiccDataErrorCode. The new
ipaEuiccDataErrorCode is a sequence that has an ipaEuiccDataErrorCode
member, which is the equivalent of the previously existing
ipaEuiccDataError member.
See also: SGP.32, section 2.11.2.2
Change-Id: Ie734a09ed4b0d57de30dc6fb377dfada79ea2ae4
Related: SYS#8100
---
M src/esipa_rest_utils.erl
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/onomondo-eim refs/changes/83/42883/1
diff --git a/src/esipa_rest_utils.erl b/src/esipa_rest_utils.erl
index 936e6fa..c2565b5 100644
--- a/src/esipa_rest_utils.erl
+++ b/src/esipa_rest_utils.erl
@@ -550,7 +550,8 @@
IpaEuiccDataJsonFiltered =
{lists:filter(fun(Member) -> Member /= nil end, IpaEuiccDataJson)},
[{[{euiccDataResult, {[{edrResult, ok}, {euiccData, IpaEuiccDataJsonFiltered}]}}]}];
- {ipaEuiccDataError, IpaEuiccDataError} ->
+ {ipaEuiccDataResponseError, IpaEuiccDataResponseError} ->
+ IpaEuiccDataError = maps:get(ipaEuiccDataErrorCode, IpaEuiccDataResponseError),
[{[{euiccDataResult, {[{edrResult, IpaEuiccDataError}]}}]}];
_ ->
[{[{euiccDataResult, {[{edrResult, undefinedError}]}}]}]
To view, visit change 42883. To unsubscribe, or for help writing mail filters, visit settings.