From debef67f3fd9b94017df2c5d3c22775b9f042fa9 Mon Sep 17 00:00:00 2001 From: Julian Bouzas <julian.bouzas@collabora.com> Date: Mon, 5 Apr 2021 11:19:06 -0400 Subject: [PATCH] policy-node.lua: fix param name typo when finding target Fixes unespected issues when finding first available target --- src/scripts/policy-node.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/policy-node.lua b/src/scripts/policy-node.lua index ccac21d2..f1a4476f 100644 --- a/src/scripts/policy-node.lua +++ b/src/scripts/policy-node.lua @@ -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 -- GitLab