HomeClusterLabs Projects

Refactor: controller,liblrmd,libpacemaker: functionize setting event result

Description

Refactor: controller,liblrmd,libpacemaker: functionize setting event result

lrmd_event_data_t is public API, so we can't refactor it to use
pcmk__action_result_t at this time.

However, we can create equivalent accessor functions for the result members.
This encourages setting agent exit status, execution status, and exit reason
together whenever possible, and will make it easier to refactor to use
pcmk__action_result_t in the future.

This is purely a refactor; no additional exit reasons are set as of this
commit.

Details

Provenance
kgaillotAuthored on May 27 2021, 4:54 PM
Parents
rP890f231ac0f5: Refactor: executor: use pcmk__action_result_t in remote_ra_cmd_t
Branches
Unknown
Tags
Unknown

Event Timeline