HomeClusterLabs Projects

Fix: scheduler: don't treat invalid duration fields as -1

Description

Fix: scheduler: don't treat invalid duration fields as -1

Previously, we used crm_parse_int() to parse years, months, etc., from duration
fields in rules, which meant that invalid values were mapped to -1 (i.e.
subtracting 1 whatever from the duration). Now, ignore invalid values.

Details

Provenance
kgaillotAuthored on Mar 19 2021, 6:49 PM
Parents
rPb239ec4ce3fe: Refactor: scheduler: functionize getting utilization values
Branches
Unknown
Tags
Unknown

Event Timeline