~ubuntu-branches/ubuntu/saucy/rabbitmq-server/saucy

« back to all changes in this revision

Viewing changes to plugins-src/rabbitmq-management/src/rabbit_mgmt_wm_nodes.erl

  • Committer: Package Import Robot
  • Author(s): Emile Joubert
  • Date: 2012-11-19 11:42:31 UTC
  • mfrom: (0.2.18) (0.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20121119114231-hvapkn4akng09etr
Tags: 3.0.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    Nodes = proplists:get_value(nodes, S),
44
44
    Types = proplists:get_keys(Nodes),
45
45
    Running = proplists:get_value(running_nodes, S),
46
 
    lists:append(
47
 
      [[make_entry(Node, Type, lists:member(Node, Running))
48
 
        || Node <- proplists:get_value(Type, Nodes)] || Type <- Types]).
49
 
 
50
 
make_entry(Node, Type, Running) ->
51
 
    [{name, Node}, {type, Type}, {running, Running}]
52
 
        ++ case Running of
53
 
               true -> rabbit_mgmt_external_stats:info(Node);
54
 
               _    -> []
55
 
           end.
 
46
    rabbit_mgmt_db:augment_nodes(
 
47
      [[{name, Node}, {type, Type}, {running, lists:member(Node, Running)}] ||
 
48
          Type <- Types, Node <- proplists:get_value(Type, Nodes)]).