HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__xe_get_guint()
cbbcee50acfaUnpublished

Unpublished Commit ยท Learn More

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

Description

Refactor: libcrmcommon: New pcmk__xe_get_guint()

To replace crm_element_value_ms().

The only thing milliseconds-specific about the existing function was the
error message. IMO, it's better not to log errors or warnings within the
getter function. The caller has more context and can log errors or
warnings if appropriate. Sometimes, a parse failure may be expected as a
legitimate possibility.

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

Details

Provenance
nrwahl2Authored on Mar 19 2025, 3:53 AM
Parents
rP51e3d573e6d8: API: libcrmcommon: Deprecate crm_element_value_epoch()
Branches
Unknown
Tags
Unknown

Event Timeline