fix(emqx_plugins): call cluster_rpc to update config

This commit is contained in:
Zaiming (Stone) Shi 2022-06-11 16:21:32 +02:00
parent 9b572f341b
commit 186e26e417
1 changed files with 1 additions and 1 deletions

View File

@ -648,7 +648,7 @@ put_config(Key, Value) when is_atom(Key) ->
put_config([Key], Value); put_config([Key], Value);
put_config(Path, Values) when is_list(Path) -> put_config(Path, Values) when is_list(Path) ->
Opts = #{rawconf_with_defaults => true, override_to => cluster}, Opts = #{rawconf_with_defaults => true, override_to => cluster},
case emqx:update_config([?CONF_ROOT | Path], bin_key(Values), Opts) of case emqx_conf:update([?CONF_ROOT | Path], bin_key(Values), Opts) of
{ok, _} -> ok; {ok, _} -> ok;
Error -> Error Error -> Error
end. end.