Browse Source

fixed an oo_filter plugin lib_utils_oo_has_no_matching_selector to do set comparison

Matt Woodson 7 years ago
parent
commit
d2027c0c4e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/lib_utils/filter_plugins/oo_filters.py

+ 1 - 1
roles/lib_utils/filter_plugins/oo_filters.py

@@ -698,7 +698,7 @@ def lib_utils_oo_has_no_matching_selector(source, selector=None):
     if not selector:
         return False
     for item in source:
-        if selector.items() <= item.items():
+        if set(selector.items()).issubset(set(item.items())):
             # Matching selector found
             return False
     return True