fix: bad NeedToLoad plugins

This commit is contained in:
zhongwencool 2022-08-09 10:29:17 +08:00
parent 25228ed248
commit e9a5c4295c
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ load_plugins(Names, Persistent) ->
[] -> ok;
NotFound -> ?LOG(alert, "cannot_find_plugins: ~p", [NotFound])
end,
NeedToLoad = Names -- NotFound -- names(started_app),
NeedToLoad = (Names -- NotFound) -- names(started_app),
lists:foreach(fun(Name) ->
Plugin = find_plugin(Name, Plugins),
load_plugin(Plugin#plugin.name, Persistent)

View File

@ -100,7 +100,7 @@ t_ensure_default_loaded_plugins_file(Config) ->
[ {emqx_bridge_mqtt, false}
, {emqx_dashboard, true}
, {emqx_management, true}
, {emqx_modules, false}
, {emqx_modules, true}
, {emqx_recon, true}
, {emqx_retainer, true}
, {emqx_rule_engine, true}