python-cloudkittyclient/releasenotes/notes/fix-create_threshold-method...

9 lines
303 B
YAML

---
fixes:
- |
Fix `create_threshold` method when using cost as 0.
When using 0 as the cost, the `create_threshold` method
throws an exception. That happens because 0 (zero) is evaluated
to False. Therefore, we need to change the validation method to
check if the values are None.