policy-endpoint-device: handle filters only if we have endpoints
Otherwise the filters are handled both in policy-node and here and everything is messed up Fixes: #536
This commit is contained in:
@@ -22,10 +22,13 @@ function rescan ()
|
|||||||
handleLinkable(si_ep)
|
handleLinkable(si_ep)
|
||||||
end
|
end
|
||||||
|
|
||||||
for filter in streams_om:iterate {
|
-- handle filters only if we have endpoints
|
||||||
Constraint { "node.link-group", "+" },
|
if endpoints_om:get_n_objects () > 0 then
|
||||||
} do
|
for filter in streams_om:iterate {
|
||||||
handleFilter(filter)
|
Constraint { "node.link-group", "+" },
|
||||||
|
} do
|
||||||
|
handleFilter(filter)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user