mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-31 22:16:49 +00:00
Remove cruft from lua/rule_loader.lua
This commit is contained in:
parent
601ad3b620
commit
e50dd885c2
@ -31,22 +31,10 @@ local function install_filter(node)
|
||||
filter.rel_expr(node.left.value, node.operator, node.right.value)
|
||||
-- io.write(node.left.value.." "..node.operator.." "..node.right.value)
|
||||
|
||||
-- xxx still need to handle case where node.right.type=="list"
|
||||
|
||||
elseif t == "UnaryRelOp" then
|
||||
filter.rel_expr(node.argument.value, node.operator)
|
||||
--io.write(node.argument.value.." "..node.operator)
|
||||
|
||||
elseif t == "List" then
|
||||
error("Not handling List yet")
|
||||
|
||||
elseif t == "FieldName" or t == "Number" or t == "String" or t == "BareString" or t == "Macro" then
|
||||
error ("Unexpected type: "..t)
|
||||
|
||||
io.write(t.." "..node.value)
|
||||
|
||||
elseif t == "MacroDef" then
|
||||
error ("Unexpected type: "..t)
|
||||
else
|
||||
error ("Unexpected type: "..t)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user