Przeglądaj źródła

fix: ensure plugin avsc serde before config

JimMoen 1 rok temu
rodzic
commit
5dc96a37e2
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      apps/emqx_plugins/src/emqx_plugins.erl

+ 2 - 2
apps/emqx_plugins/src/emqx_plugins.erl

@@ -161,8 +161,8 @@ ensure_installed(NameVsn) ->
             ok = purge(NameVsn),
             case ensure_exists_and_installed(NameVsn) of
                 ok ->
-                    _ = maybe_ensure_plugin_config(NameVsn),
-                    maybe_post_op_after_installed(NameVsn);
+                    maybe_post_op_after_installed(NameVsn),
+                    _ = maybe_ensure_plugin_config(NameVsn);
                 {error, _Reason} = Err ->
                     Err
             end