HomeClusterLabs Projects

Refactor: controller: combine lrm_state_find* functions

Description

Refactor: controller: combine lrm_state_find* functions

Instead of two functions lrm_state_find() and lrm_state_find_or_create(),
merge them into a single function controld_get_executor_state() that takes a
bool argument for whether to create if not already existing.

Also, allow passing a NULL node name to mean the local node.

Details

Provenance
kgaillotAuthored on Aug 6 2024, 5:15 PM
Parents
rP7a7d3f4cd921: Refactor: controller: functionize getting local node status
Branches
Unknown
Tags
Unknown