HomeClusterLabs Projects

Refactor: tools: Drop gratuitious pcmk_find_node() for cmd_digests
171c385ea880Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: tools: Drop gratuitious pcmk_find_node() for cmd_digests

If options.host_uname != NULL, then we already got the node earlier in
main() or exited with an error. (Or if we didn't get the node because
scheduler is NULL, then we would segfault here.)

And in fact options.host_uname must be non-NULL, because
is_node_required() returns true for cmd_digests.

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

Details

Provenance
nrwahl2Authored on Mar 3 2025, 6:54 PM
Parents
rP34814ecf0de6: Refactor: tools: Pass node to crm_resource.c:refresh()
Branches
Unknown
Tags
Unknown

Event Timeline