|
|
@@ -87,12 +87,18 @@ bridge_api_union(Refs) ->
|
|
|
|
|
|
-if(?EMQX_RELEASE_EDITION == ee).
|
|
|
enterprise_api_schemas(Method) ->
|
|
|
+ %% We *must* do this to ensure the module is really loaded, especially when we use
|
|
|
+ %% `call_hocon' from `nodetool' to generate initial configurations.
|
|
|
+ _ = emqx_bridge_enterprise:module_info(),
|
|
|
case erlang:function_exported(emqx_bridge_enterprise, api_schemas, 1) of
|
|
|
true -> emqx_bridge_enterprise:api_schemas(Method);
|
|
|
false -> []
|
|
|
end.
|
|
|
|
|
|
enterprise_fields_bridges() ->
|
|
|
+ %% We *must* do this to ensure the module is really loaded, especially when we use
|
|
|
+ %% `call_hocon' from `nodetool' to generate initial configurations.
|
|
|
+ _ = emqx_bridge_enterprise:module_info(),
|
|
|
case erlang:function_exported(emqx_bridge_enterprise, fields, 1) of
|
|
|
true -> emqx_bridge_enterprise:fields(bridges);
|
|
|
false -> []
|