From 186e26e417c114cbd88d38d2cb063e2b047edf2b Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sat, 11 Jun 2022 16:21:32 +0200 Subject: [PATCH] fix(emqx_plugins): call cluster_rpc to update config --- apps/emqx_plugins/src/emqx_plugins.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_plugins/src/emqx_plugins.erl b/apps/emqx_plugins/src/emqx_plugins.erl index 8abc86d53..bca0defc5 100644 --- a/apps/emqx_plugins/src/emqx_plugins.erl +++ b/apps/emqx_plugins/src/emqx_plugins.erl @@ -648,7 +648,7 @@ put_config(Key, Value) when is_atom(Key) -> put_config([Key], Value); put_config(Path, Values) when is_list(Path) -> 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; Error -> Error end.