Skip to content

Commit

Permalink
Also support deprecated match clause for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed May 14, 2022
1 parent 6ec1e9e commit 652712c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vortex/core/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ def from_dict(loader, entity_dict):
params=entity_dict.get('params'),
tags=entity_dict.get('scheduling'),
inherits=entity_dict.get('inherits'),
match=entity_dict.get('if'),
# TODO: Remove deprecated match clause in future
match=entity_dict.get('if') or entity_dict.get('match'),
execute=entity_dict.get('execute'),
fail=entity_dict.get('fail')
)
Expand Down

0 comments on commit 652712c

Please sign in to comment.