Skip to content

Commit

Permalink
fix(gathered_filter): Fix logic for does-not-contain
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesholland-uk committed Sep 6, 2023
1 parent ff65f0f commit ac64fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/panos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ def matches_gathered_filter(self, item, logic):
elif operator == "contains":
evaler.append("{0}".format(value in item_config[field]))
elif operator == "does-not-contain":
evaler.append("{0}".format(value in item_config[field]))
evaler.append("{0}".format(value not in item_config[field]))
elif operator == "starts-with":
evaler.append("{0}".format(item_config[field].startswith(value)))
elif operator == "does-not-start-with":
Expand Down

0 comments on commit ac64fa9

Please sign in to comment.