Commit debef67f authored by Julian Bouzas's avatar Julian Bouzas
Browse files

policy-node.lua: fix param name typo when finding target

Fixes unespected issues when finding first available target
parent a1923d81
Pipeline #296021 passed with stages
in 1 minute and 2 seconds
......@@ -121,12 +121,12 @@ function findTargetByFirstAvailable (node, target_media_class)
return nil
end
function findTarget (node, target_class_assoc)
function findTarget (node, target_media_class)
local si_target = findTargetByTargetNodeMetadata (node, target_media_class)
if not si_target then
si_target = findTargetByNodeTargetProperty (node, target_media_class)
if not si_target then
si_target = findTargetByDefaultNode (node, target_class_assoc)
si_target = findTargetByDefaultNode (node, target_media_class)
if not si_target then
si_target = findTargetByFirstAvailable (node, target_media_class)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment