HomeClusterLabs Projects

Refactor: libcrmcommon: Standardize pcmk__xe_get_bool_attr return codes

Description

Refactor: libcrmcommon: Standardize pcmk__xe_get_bool_attr return codes

Use the same return code scheme as other XML attribute getter functions.

Also, in the unit tests, simply assert not equal to pcmk_rc_ok when the
value is unparsable as a boolean. The specific return code seems more
like a detail of pcmk__parse_bool().

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Wed, Sep 3, 2:12 AM
Parents
rPe2126481908d: Doc: libcrmcommon: Clean up Doxygen for pcmk__xe_get_bool_attr()
Branches
Unknown
Tags
Unknown