From 74aff5720f27edac58d1f711890bc43365f88c26 Mon Sep 17 00:00:00 2001 From: Simon Unge Date: Tue, 26 Sep 2023 20:57:24 +0000 Subject: [PATCH] Fix wrong queue-pattern type (cherry picked from commit e8a872ff42fef0980c27b35ee9f6a5fcce92954f) (cherry picked from commit 544679517bbfad4a061a8fccd27ceccfa923ddcc) --- deps/rabbit/priv/schema/rabbit.schema | 2 ++ deps/rabbit/test/config_schema_SUITE_data/rabbit.snippets | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/rabbit/priv/schema/rabbit.schema b/deps/rabbit/priv/schema/rabbit.schema index 654130c75bf8..3dc4e50307ba 100644 --- a/deps/rabbit/priv/schema/rabbit.schema +++ b/deps/rabbit/priv/schema/rabbit.schema @@ -795,6 +795,8 @@ end}. _ -> V end, {["default_policies","operator",ID|T], NewV}; + ({["default_policies","operator",ID, "queue_pattern"], V}) -> + {["default_policies","operator",ID,"queue_pattern"], list_to_binary(V)}; (E) -> E end), case Props of diff --git a/deps/rabbit/test/config_schema_SUITE_data/rabbit.snippets b/deps/rabbit/test/config_schema_SUITE_data/rabbit.snippets index b28b30c44e9d..08e2879015fd 100644 --- a/deps/rabbit/test/config_schema_SUITE_data/rabbit.snippets +++ b/deps/rabbit/test/config_schema_SUITE_data/rabbit.snippets @@ -158,7 +158,7 @@ ssl_options.fail_if_no_peer_cert = true", {<<"ha_mode">>, <<"exactly">>}, {<<"ha_params">>, 2}, {<<"ha_sync_mode">>, <<"automatic">>}, - {<<"queue_pattern">>, "apple"}, + {<<"queue_pattern">>, <<"apple">>}, {<<"vhost_pattern">>, "banana"}]}]}]}]}], []},