HomeClusterLabs Projects

Refactor: libpe_rules,libcrmcommon: parse comparison type into enum

Description

Refactor: libpe_rules,libcrmcommon: parse comparison type into enum

This will make planned changes easier, allows for unit testing, and is more
efficient.

Also, log invalid comparison types. Previously, accept_attr_expr() would return
false in this case, either because one of the values was NULL, or because it
fell through to the final return. Now, we return FALSE sooner, in
pe__eval_attr_expr().

Details

Provenance
kgaillotAuthored on Feb 28 2024, 12:57 PM
Parents
rPc63674ec9f53: Merge pull request #3376 from kgaillot/best-practices
Branches
Unknown
Tags
Unknown