HomeClusterLabs Projects

Refactor: various: add convenience function for checking result success

Description

Refactor: various: add convenience function for checking result success

A successful pcmk__action_result_t has both exit status CRM_EX_OK (a.k.a
PCMK_OCF_OK) and execution status PCMK_EXEC_DONE. Since checking that is
clunky, we sometimes just check exit status, which is less than ideal.

The convenience function makes it easy to check both, and improves readability.

Details

Provenance
kgaillotAuthored on Nov 12 2021, 5:02 PM
Parents
rP8e6362cb2129: Refactor: libcrmcommon,fencer: convenience macro for initializing results
Branches
Unknown
Tags
Unknown

Event Timeline