fix(rule-engine): fix test failure
This commit is contained in:
parent
73655369af
commit
7072355bc1
|
@ -531,8 +531,7 @@ cluster_call(Func, Args) ->
|
||||||
init_resource(Module, OnCreate, ResId, Config) ->
|
init_resource(Module, OnCreate, ResId, Config) ->
|
||||||
Params = ?RAISE(
|
Params = ?RAISE(
|
||||||
begin
|
begin
|
||||||
emqx_rule_registry:find_resource(ResId) /= not_found
|
Module:OnCreate(ResId, Config)
|
||||||
andalso Module:OnCreate(ResId, Config)
|
|
||||||
end,
|
end,
|
||||||
{{Module, OnCreate}, {_EXCLASS_, _EXCPTION_, _ST_}}),
|
{{Module, OnCreate}, {_EXCLASS_, _EXCPTION_, _ST_}}),
|
||||||
ResParams = #resource_params{id = ResId,
|
ResParams = #resource_params{id = ResId,
|
||||||
|
|
Loading…
Reference in New Issue