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:
parent
dc4f8cd73f
commit
c10c2326d4
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue