fix(rule-engine): fix test failure

This commit is contained in:
wwhai 2021-01-29 14:15:28 +08:00 committed by JianBo He
parent 73655369af
commit 7072355bc1
1 changed files with 1 additions and 2 deletions

View File

@ -531,8 +531,7 @@ cluster_call(Func, Args) ->
init_resource(Module, OnCreate, ResId, Config) ->
Params = ?RAISE(
begin
emqx_rule_registry:find_resource(ResId) /= not_found
andalso Module:OnCreate(ResId, Config)
Module:OnCreate(ResId, Config)
end,
{{Module, OnCreate}, {_EXCLASS_, _EXCPTION_, _ST_}}),
ResParams = #resource_params{id = ResId,