mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-27 07:07:23 +00:00
AST: Rule node always has an Output child node
This commit is contained in:
parent
a7d0132154
commit
3a56c1a0e4
@ -168,6 +168,9 @@ local function outputformat (format)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function rule(filter, output)
|
local function rule(filter, output)
|
||||||
|
if not output then
|
||||||
|
output = outputformat("")
|
||||||
|
end
|
||||||
return {type = "Rule", filter = filter, output = output}
|
return {type = "Rule", filter = filter, output = output}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user