fix: format console action crash

This commit is contained in:
zhongwencool 2023-09-15 17:40:56 +08:00
parent 640dd130fa
commit 32d838c85b
1 changed files with 4 additions and 0 deletions

View File

@ -525,6 +525,10 @@ do_format_action(#{mod := Mod, func := Func, args := Args}) ->
#{
function => printable_function_name(Mod, Func),
args => maps:remove(preprocessed_tmpl, Args)
};
do_format_action(#{mod := Mod, func := Func}) ->
#{
function => printable_function_name(Mod, Func)
}.
printable_function_name(emqx_rule_actions, Func) ->