HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__is_true() function
58e11cc5f8a0Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or 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

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.