Skip to content

Commit

Permalink
PISTON-889: also accept {'timeout', Resps} for most_recent_ets_status…
Browse files Browse the repository at this point in the history
…es (2600hz#5964)
  • Loading branch information
danielfinke authored and lazedo committed Aug 20, 2019
1 parent 98a6e74 commit 29d83bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applications/acdc/src/acdc_agent_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ most_recent_ets_statuses(AccountId, AgentId, Options) ->
)
of
{'error', _}=E -> E;
{'ok', Resps} ->
{Result, Resps} when Result =:= 'ok'
orelse Result =:= 'timeout' ->
OKResps = lists:filter(fun kapi_acdc_stats:status_resp_v/1, Resps),
Statuses = lists:foldl(fun(Resp, AccJObj) ->
AgentsStatuses = kz_json:get_json_value(<<"Agents">>, Resp),
Expand Down

0 comments on commit 29d83bb

Please sign in to comment.