Skip to content

Commit

Permalink
Fixed issue with matching non-string values
Browse files Browse the repository at this point in the history
  • Loading branch information
dolejska-daniel committed Apr 11, 2021
1 parent 60d150d commit 3a9a846
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deployer/utils/schemas/event_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def conditions_and(conditions: dict[str, Any]):
try:
field_value = get_key_recursive(event, condition_field, ".")
if field_value != condition_value \
and re.match(condition_value, field_value) is None:
and (not isinstance(condition_value, str)
or re.match(condition_value, field_value) is None):
return False

except Exception:
Expand Down

0 comments on commit 3a9a846

Please sign in to comment.