HomeClusterLabs Projects

Refactor: various: always use constants for OCF/executor codes

Description

Refactor: various: always use constants for OCF/executor codes

... instead of integers directly, for readability and robustness.

The only actual change is that construct_op() now initializes the exit status
to PCMK_OCF_UNKNOWN (193) rather than the nonsensical value -1, but the current
code always overwrites it before use anyway.

Details

Provenance
kgaillotAuthored on May 28 2021, 10:22 AM
Parents
rP31c7fa8a3a9c: Refactor: controller,liblrmd,libpacemaker: functionize setting event result
Branches
Unknown
Tags
Unknown

Event Timeline