Skip to content

Commit

Permalink
Merge pull request #12797 from rabbitmq/mk-format-empty-cluster-and-n…
Browse files Browse the repository at this point in the history
…ode-tags

GET /api/overview: format cluster and node tag lists as maps
  • Loading branch information
michaelklishin authored Nov 25, 2024
2 parents 9a864fc + 5c3ccc4 commit 66fd179
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deps/rabbitmq_management/src/rabbit_mgmt_wm_overview.erl
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,13 @@ transform_retention_intervals([{MaxAgeInSeconds, _}|Rest], Acc) ->
transform_retention_intervals(Rest, [AccVal|Acc]).

cluster_tags() ->
case rabbit_runtime_parameters:value_global(cluster_tags) of
Val = case rabbit_runtime_parameters:value_global(cluster_tags) of
not_found ->
[];
Tags -> Tags
end.
end,
rabbit_data_coercion:to_map(Val).

node_tags() ->
application:get_env(rabbit, node_tags, []).
Val = application:get_env(rabbit, node_tags, []),
rabbit_data_coercion:to_map(Val).

0 comments on commit 66fd179

Please sign in to comment.