rabbitmq_management_agent: Use `rabbit_plugins:enabled_plugins/0`

... instead of reading an application environment variable directly.

[Why]
There an API to abrastract already, let's use it.
This commit is contained in:
Jean-Sébastien Pédron 2023-11-16 17:53:25 +01:00
parent dc4f8cd73f
commit c10c2326d4
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 1 additions and 1 deletions

View File

@ -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),