Skip to content

Commit

Permalink
Merge pull request #7040 from Syuparn/rabbitmq-server-2684
Browse files Browse the repository at this point in the history
Fix empty channel detail format in management api
  • Loading branch information
michaelklishin authored Jan 26, 2023
2 parents 69781ff + e3e6c97 commit 0562f24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deps/rabbitmq_management_agent/src/rabbit_mgmt_format.erl
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,13 @@ clean_channel_details(Obj) ->
undefined -> Obj0;
Chd ->
pset(channel_details,
lists:keydelete(pid, 1, Chd),
format_channel_details(lists:keydelete(pid, 1, Chd)),
Obj0)
end.
format_channel_details([]) -> #{};
format_channel_details(Any) -> Any.
-spec format_consumer_arguments(proplists:proplist()) -> proplists:proplist().
format_consumer_arguments(Obj) ->
case pget(arguments, Obj) of
Expand Down

0 comments on commit 0562f24

Please sign in to comment.