Skip to content

Commit

Permalink
Merge pull request #667 from erlcloud/fix_erlcloud_sm_return_maps
Browse files Browse the repository at this point in the history
erlcloud_sm: fix use of jsx
  • Loading branch information
Evgeny Bob committed Nov 14, 2020
2 parents dd9f8fb + 7190d7a commit 3ce4e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/erlcloud_sm.erl
Expand Up @@ -100,7 +100,7 @@ sm_request_no_update(Config, Operation, Body) ->
request_body = Payload},
case erlcloud_aws:request_to_return(erlcloud_retry:request(Config, Request, fun sm_result_fun/1)) of
{ok, {_RespHeaders, <<>>}} -> {ok, []};
{ok, {_RespHeaders, RespBody}} -> {ok, jsx:decode(RespBody)};
{ok, {_RespHeaders, RespBody}} -> {ok, jsx:decode(RespBody, [{return_maps, false}])};
{error, _} = Error -> Error
end.

Expand Down

0 comments on commit 3ce4e6d

Please sign in to comment.