Skip to content

Commit

Permalink
Merge branch 'v3.13.x' into cluster_wide_queue_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonUnge authored May 10, 2024
2 parents 7a160fe + dc7c51a commit 6f10959
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 0 additions & 2 deletions deps/rabbit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ dep_syslog = git https://github.com/schlagert/syslog 4.0.0
dep_osiris = git https://github.com/rabbitmq/osiris v1.8.1
dep_systemd = hex 0.6.1

dep_seshat = git https://github.com/rabbitmq/seshat v0.6.1

define usage_xml_to_erl
$(subst __,_,$(patsubst $(DOCS_DIR)/rabbitmq%.1.xml, src/rabbit_%_usage.erl, $(subst -,_,$(1))))
endef
Expand Down
4 changes: 3 additions & 1 deletion deps/rabbit/src/rabbit_mirror_queue_misc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,9 @@ has_ha_policies(Policies) ->
does_policy_configure_cmq(KeyList)
end, Policies).

does_policy_configure_cmq(KeyList) ->
does_policy_configure_cmq(Map) when is_map(Map) ->
is_map_key(<<"ha-mode">>, Map);
does_policy_configure_cmq(KeyList) when is_list(KeyList) ->
lists:keymember(<<"ha-mode">>, 1, KeyList).

list_policies_with_classic_queue_mirroring_for_cli() ->
Expand Down
10 changes: 9 additions & 1 deletion deps/rabbitmq_cli/lib/rabbitmq/cli/formatters/plugins.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## License, v. 2.0. If a copy of the MPL was not distributed with this
## file, You can obtain one at https://mozilla.org/MPL/2.0/.
##
## Copyright (c) 2007-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
## Copyright (c) 2007-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
alias RabbitMQ.CLI.Formatters.FormatterHelpers

defmodule RabbitMQ.CLI.Formatters.Plugins do
Expand Down Expand Up @@ -146,10 +146,18 @@ defmodule RabbitMQ.CLI.Formatters.Plugins do
]
end

defp augment_version(%{version: version, running: false}) do
to_string(version)
end

defp augment_version(%{version: version, running_version: nil}) do
to_string(version)
end

defp augment_version(%{version: version, running_version: ""}) do
to_string(version)
end

defp augment_version(%{version: version, running_version: version}) do
to_string(version)
end
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_cli/test/plugins/plugins_formatter_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ defmodule PluginsFormatterTest do
enabled: :implicit,
running: true,
version: ~c"3.7.0",
running_version: nil
running_version: ""
},
%{
name: :mock_rabbitmq_plugins_01,
Expand Down
1 change: 1 addition & 0 deletions rabbitmq-components.mk
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ dep_recon = hex 2.5.3
dep_redbug = hex 2.0.7
dep_thoas = hex 1.0.0
dep_observer_cli = hex 1.7.3
dep_seshat = git https://github.com/rabbitmq/seshat v0.6.1
dep_stdout_formatter = hex 0.2.4
dep_sysmon_handler = hex 1.3.0

Expand Down

0 comments on commit 6f10959

Please sign in to comment.