-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change logic in rule.py irt conditions being overwritten #564
Conversation
rule.py always overwrites rule["conditions"] when conditions are given, and doesn't fill it with an empty dict when no conditions are given
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA. |
recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Mike!
Thanks for finding and solving this bug.
By coincidence, I created a duplicate PR with the same solution. ;-)
I will put my changelog into your PR and close mine as duplicate.
Cheers
Lars
@Mik3yZ,
|
@Mik3yZ, |
This always filled
rule["conditions"]
with a empty dict, when conditions were defined. (and didn't fill it with an empty dict when there are no conditions).Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
rule["conditions"]
gets overwritten with an empty default dict, when the rule definition contains conditions. The logic is wrong.What is the new behavior?
Changed to logic so it works as expected.