Skip to content

Commit b1a0174

Browse files
Merge pull request #12103 from rabbitmq/mergify/bp/v3.13.x/pr-12092
Don't return khepri status when khperi_db is disabled (backport #12085) (backport #12092)
2 parents 7e653a0 + 73b4fd5 commit b1a0174

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/diagnostics/commands/metadata_store_status_command.ex

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ defmodule RabbitMQ.CLI.Diagnostics.Commands.MetadataStoreStatusCommand do
1414
use RabbitMQ.CLI.Core.RequiresRabbitAppRunning
1515

1616
def run([] = _args, %{node: node_name}) do
17-
:rabbit_misc.rpc_call(node_name, :rabbit_khepri, :status, [])
17+
case :rabbit_misc.rpc_call(node_name, :rabbit_feature_flags, :is_enabled, [:khepri_db]) do
18+
true ->
19+
:rabbit_misc.rpc_call(node_name, :rabbit_khepri, :status, [])
20+
false ->
21+
[[{<<"Metadata Store">>, "mnesia"}]]
22+
end
1823
end
1924

2025
use RabbitMQ.CLI.DefaultOutput

0 commit comments

Comments
 (0)