File: fix-create_threshold-method-validation-f193e883e82214c9.yaml

package info (click to toggle)
python-cloudkittyclient 5.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 752 kB
  • sloc: python: 3,512; makefile: 26; sh: 2
file content (8 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
---
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.