Skip to content

Commit 2ca9631

Browse files
Merge pull request #7391 from rabbitmq/rabbitmq-server-7262
Remove RABBITMQ_ERLANG_COOKIE warning
2 parents 2463933 + fbe83e4 commit 2ca9631

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/core/distribution.ex

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ defmodule RabbitMQ.CLI.Core.Distribution do
6969

7070
cookie ->
7171
Node.set_cookie(cookie)
72-
maybe_warn_about_deprecated_rabbitmq_erlang_cookie_env_variable(options)
7372
:ok
7473
end
7574
end
@@ -111,28 +110,4 @@ defmodule RabbitMQ.CLI.Core.Distribution do
111110
String.to_atom("rabbitmqcli-#{id}-#{rmq_hostname}")
112111
end
113112
end
114-
115-
defp maybe_warn_about_deprecated_rabbitmq_erlang_cookie_env_variable(options) do
116-
case System.get_env("RABBITMQ_ERLANG_COOKIE") do
117-
nil ->
118-
:ok
119-
120-
_ ->
121-
case Config.output_less?(options) do
122-
true ->
123-
:ok
124-
125-
false ->
126-
warning =
127-
ANSI.bright_red(
128-
"RABBITMQ_ERLANG_COOKIE env variable support is deprecated and will be REMOVED in a future version. "
129-
) <>
130-
ANSI.yellow(
131-
"Use the $HOME/.erlang.cookie file or the --erlang-cookie switch instead."
132-
)
133-
134-
IO.puts(warning)
135-
end
136-
end
137-
end
138113
end

0 commit comments

Comments
 (0)