fix: bad NeedToLoad plugins
This commit is contained in:
parent
25228ed248
commit
e9a5c4295c
|
@ -265,7 +265,7 @@ load_plugins(Names, Persistent) ->
|
||||||
[] -> ok;
|
[] -> ok;
|
||||||
NotFound -> ?LOG(alert, "cannot_find_plugins: ~p", [NotFound])
|
NotFound -> ?LOG(alert, "cannot_find_plugins: ~p", [NotFound])
|
||||||
end,
|
end,
|
||||||
NeedToLoad = Names -- NotFound -- names(started_app),
|
NeedToLoad = (Names -- NotFound) -- names(started_app),
|
||||||
lists:foreach(fun(Name) ->
|
lists:foreach(fun(Name) ->
|
||||||
Plugin = find_plugin(Name, Plugins),
|
Plugin = find_plugin(Name, Plugins),
|
||||||
load_plugin(Plugin#plugin.name, Persistent)
|
load_plugin(Plugin#plugin.name, Persistent)
|
||||||
|
|
|
@ -100,7 +100,7 @@ t_ensure_default_loaded_plugins_file(Config) ->
|
||||||
[ {emqx_bridge_mqtt, false}
|
[ {emqx_bridge_mqtt, false}
|
||||||
, {emqx_dashboard, true}
|
, {emqx_dashboard, true}
|
||||||
, {emqx_management, true}
|
, {emqx_management, true}
|
||||||
, {emqx_modules, false}
|
, {emqx_modules, true}
|
||||||
, {emqx_recon, true}
|
, {emqx_recon, true}
|
||||||
, {emqx_retainer, true}
|
, {emqx_retainer, true}
|
||||||
, {emqx_rule_engine, true}
|
, {emqx_rule_engine, true}
|
||||||
|
|
Loading…
Reference in New Issue