HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__output_select_rc() function

Description

Refactor: libcrmcommon: New pcmk__output_select_rc() function

Per the doxygen, this is a convenience function to simplify deciding how
to update a saved return code based on the latest operation using a
pcmk__output_t object. Basically, it tries to keep the most meaningful
return code from a series of operations. This will be used in upcoming
commits.

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

Details

Provenance
nrwahl2Authored on Feb 9 2023, 2:56 AM
Parents
rP68a2924f7d93: Refactor: various: New pcmk__register_patchset_messages()
Branches
Unknown
Tags
Unknown