Skip to content

Commit 1af7896

Browse files
dumbbellmergify[bot]
authored andcommitted
rabbitmq_management_agent: Use rabbit_plugins:enabled_plugins/0
... instead of reading an application environment variable directly. [Why] There is an API to abstract this already, let's use it. (cherry picked from commit ed3abaa) (cherry picked from commit 0ff1790)
1 parent 3fd6bcb commit 1af7896

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

Lines changed: 1 addition & 1 deletion
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)