Skip to content

Commit

Permalink
# This is a combination of 3 commits.
Browse files Browse the repository at this point in the history
# This is the 1st commit message:

Added undo_colour/1, removes ANSI escape codes

# This is the commit message rabbitmq#2:

Fix for rabbitmq#8557, removed ANSI codes in JSON output

# This is the commit message rabbitmq#3:

Removed undo_colour/1
  • Loading branch information
Ariel Otilibili authored and lukebakken committed Jan 5, 2024
1 parent e56b479 commit c095b32
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -112,6 +112,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.ClusterStatusCommand do
# format more data structures as map for sensible JSON output
m =
result_map(result)
|> Map.update!(:maintenance_status, &undo_colour/1)
|> Map.update(:alarms, [], fn xs -> alarm_maps(xs) end)
|> Map.update(:listeners, %{}, fn m ->
Enum.map(m, fn {n, xs} -> {n, listener_maps(xs)} end) |> Enum.into(%{})
Expand Down

0 comments on commit c095b32

Please sign in to comment.