Fix usage of plugins option, which produced default_node_config ignore (#4070)

This commit is contained in:
Badlop 2023-08-02 11:39:48 +02:00
parent 550a586d2a
commit 66df953da1
1 changed files with 4 additions and 3 deletions

View File

@ -3367,9 +3367,10 @@ get_option(Options, Var, Def) ->
-spec node_options(host(), binary()) -> [{atom(), any()}].
node_options(Host, Type) ->
DefaultOpts = node_plugin_options(Host, Type),
case config(Host, plugins) of
[Type|_] -> config(Host, default_node_config, DefaultOpts);
_ -> DefaultOpts
case lists:member(Type, config(Host, plugins)) of
true ->
config(Host, default_node_config, DefaultOpts);
false -> DefaultOpts
end.
-spec node_plugin_options(host(), binary()) -> [{atom(), any()}].