From 544679517bbfad4a061a8fccd27ceccfa923ddcc 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) --- 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 6839fbc24c27..4fc42f8f3db8 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 22599502d305..45778ba119ea 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"}]}]}]}]}], []},