policy-node.lua: fix the session items unhandling

This commit is contained in:
Ashok Sidipotu
2022-08-26 12:22:02 +05:30
committed by Julian Bouzas
parent 0983326433
commit a5a6300662
6 changed files with 50 additions and 24 deletions

View File

@@ -13,6 +13,15 @@ function cutils.parseBool (var)
return var and (var:lower () == "true" or var == "1")
end
function cutils.parseParam (param, id)
local route = param:parse ()
if route.pod_type == "Object" and route.object_id == id then
return route.properties
else
return nil
end
end
function cutils.getTargetDirection (properties)
local target_direction = nil
if properties ["item.node.direction"] == "output" or