Skip to content

Commit

Permalink
Merge pull request #12798 from rabbitmq/mergify/bp/v4.0.x/pr-12797
Browse files Browse the repository at this point in the history
GET /api/overview: format cluster and node tag lists as maps (backport #12797)
  • Loading branch information
michaelklishin authored Nov 25, 2024
2 parents 9b1f6cc + e3e8554 commit 5da87b3
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 5da87b3

Please sign in to comment.