Skip to content

Commit 9a54ad3

Browse files
committed
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.
1 parent 4c2e4c4 commit 9a54ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbitmq_management_agent/src/rabbit_mgmt_external_stats.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ i(net_ticktime, State) ->
245245
i(persister_stats, State) ->
246246
{State, persister_stats(State)};
247247
i(enabled_plugins, State) ->
248-
{ok, Dir} = application:get_env(rabbit, enabled_plugins_file),
248+
Dir = rabbit_plugins:enabled_plugins_file(),
249249
{State, rabbit_plugins:read_enabled(Dir)};
250250
i(auth_mechanisms, State) ->
251251
{ok, Mechanisms} = application:get_env(rabbit, auth_mechanisms),

0 commit comments

Comments
 (0)