HomeClusterLabs Projects

Refactor: libcrmcommon,libpe_rules: replace update_field()

Description

Refactor: libcrmcommon,libpe_rules: replace update_field()

... with a new function pcmk__add_time_from_xml() in libcrmcommon.

The new function has a doxygen block and unit tests, returns a standard return
code, uses an enum to select the XML attribute name and addition function, and
has better argument validation, comments, and formatting.

Details

Provenance
kgaillotAuthored on Feb 14 2024, 1:20 PM
Parents
rP21408146dd67: Refactor: scheduler: change argument type in pe__eval_date_expr()
Branches
Unknown
Tags
Unknown