Skip to content

Commit

Permalink
rabbitmq_management_agent: Use rabbit_plugins:enabled_plugins/0
Browse files Browse the repository at this point in the history
... instead of reading an application environment variable directly.

[Why]
There an API to abrastract already, let's use it.
  • Loading branch information
dumbbell committed Dec 1, 2023
1 parent a4b2251 commit 844b354
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ i(net_ticktime, State) ->
i(persister_stats, State) ->
{State, persister_stats(State)};
i(enabled_plugins, State) ->
{ok, Dir} = application:get_env(rabbit, enabled_plugins_file),
Dir = rabbit_plugins:enabled_plugins_file(),
{State, rabbit_plugins:read_enabled(Dir)};
i(auth_mechanisms, State) ->
{ok, Mechanisms} = application:get_env(rabbit, auth_mechanisms),
Expand Down

0 comments on commit 844b354

Please sign in to comment.