summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2020-07-01 18:24:32 +0300
committerMichael Klishin <michael@clojurewerkz.org>2020-07-01 18:24:32 +0300
commit836921dfc7763566ecc3134ac49ef396c9873c6a (patch)
treeb1b0638f1f34a5d616318ea36954f2f952e4b659
parent811a18c6f0e30a00f46f37b0728027f513b6ee97 (diff)
downloadrabbitmq-server-git-836921dfc7763566ecc3134ac49ef396c9873c6a.tar.gz
list_with_minimum_quorum_for_cli: convert readable names to binaries
so that CLI tools don't have to do any post-processing. References rabbitmq/rabbitmq-cli#432.
-rw-r--r--src/rabbit_quorum_queue.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_quorum_queue.erl b/src/rabbit_quorum_queue.erl
index e6f2b4ebe8..28a40ac615 100644
--- a/src/rabbit_quorum_queue.erl
+++ b/src/rabbit_quorum_queue.erl
@@ -251,7 +251,7 @@ list_with_minimum_quorum_for_cli() ->
[begin
#resource{name = Name} = amqqueue:get_name(Q),
#{
- <<"readable_name">> => rabbit_misc:rs(amqqueue:get_name(Q)),
+ <<"readable_name">> => rabbit_data_coercion:to_binary(rabbit_misc:rs(amqqueue:get_name(Q))),
<<"name">> => Name,
<<"virtual_host">> => amqqueue:get_vhost(Q),
<<"type">> => <<"quorum">>