Skip to content

Commit

Permalink
Merge pull request #7056 from rabbitmq/mergify/bp/v3.9.x/pr-7047
Browse files Browse the repository at this point in the history
Fix empty channel detail format in management api (backport #7040) (backport #7041) (backport #7047)
  • Loading branch information
michaelklishin authored Jan 26, 2023
2 parents 205640c + 3b236b7 commit adee70b
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 @@ -542,10 +542,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 adee70b

Please sign in to comment.