Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Format Web contexts
Browse files Browse the repository at this point in the history
Part of #393.

[#145067679]
  • Loading branch information
michaelklishin committed May 8, 2017
1 parent a8bee1c commit 48a9288
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rabbit_mgmt_wm_overview.erl
Expand Up @@ -97,8 +97,11 @@ web_contexts(ReqData) ->
[fmt_contexts(N) || N <- rabbit_mgmt_wm_nodes:all_nodes(ReqData)]),
["description", "port", "node"]).

fmt_contexts(N) ->
[[{node, pget(name, N)} | C] || C <- pget(contexts, N, [])].
fmt_contexts(Node) ->
[fmt_context(Node, C) || C <- pget(contexts, Node, [])].

fmt_context(Node, C) ->
rabbit_mgmt_format:web_context([{node, pget(name, Node)} | C]).

erlang_version() -> list_to_binary(rabbit_misc:otp_release()).

Expand Down

0 comments on commit 48a9288

Please sign in to comment.