Skip to content

Commit 50c40b2

Browse files
mwoodsonleseb
authored andcommitted
fixed an oo_filter plugin lib_utils_oo_has_no_matching_selector to do set comparison
1 parent 338e366 commit 50c40b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/lib_utils/filter_plugins/oo_filters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ def lib_utils_oo_has_no_matching_selector(source, selector=None):
698698
if not selector:
699699
return False
700700
for item in source:
701-
if selector.items() <= item.items():
701+
if set(selector.items()).issubset(set(item.items())):
702702
# Matching selector found
703703
return False
704704
return True

0 commit comments

Comments
 (0)