From 551df91ddfe4ce2f5e7607e97ae95d73ebb39d11 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Sun, 8 May 2022 22:01:32 +0000 Subject: [PATCH] xmltodict - Allow both OrderedDicts and normal dicts (#5111) --- moto/core/responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/core/responses.py b/moto/core/responses.py index d65848ca0..57d3172eb 100644 --- a/moto/core/responses.py +++ b/moto/core/responses.py @@ -1018,7 +1018,7 @@ def xml_to_json_response(service_spec, operation, xml, result_node=None): od[k] = [transform(v["member"], spec[k]["member"])] elif isinstance(v["member"], list): od[k] = [transform(o, spec[k]["member"]) for o in v["member"]] - elif isinstance(v["member"], OrderedDict): + elif isinstance(v["member"], (OrderedDict, dict)): od[k] = [transform(v["member"], spec[k]["member"])] else: raise ValueError("Malformatted input")