HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__is_true() function
05469b57faabUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Refactor: libcrmcommon: New pcmk__is_true() function

Make it inline. There's no real benefit from unit-testing this, since
it's a direct pass-through to pcmk__parse_bool() that allows treats NULL
and invalid as false.

Although I guess we COULD, just to make sure an invalid value that
produces pcmk_rc_bad_input returns false here.

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

Details

Provenance
nrwahl2Authored on Mar 23 2025, 1:48 AM
Parents
rP3051eb210f2d: Test: libcrmcommon: Test pcmk__parse_bool() more thoroughly
Branches
Unknown
Tags
Unknown

Event Timeline