Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET /api/overview: format cluster and node tag lists as maps #12797

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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).
Loading