HomeClusterLabs Projects

Refactor: tools: Take pcmk_node_t in cli_resource_fail()
e4604a2da64dUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: tools: Take pcmk_node_t in cli_resource_fail()

Avoid depending on host_uname directly. The goal is to minimize the
number of places where we use options.host_uname.

node is guaranteed to be non-NULL by this point, because
is_node_required() returns true for cmd_fail. We would have bailed out
earlier if options.host_uname were NULL.

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

Details

Provenance
nrwahl2Authored on Mar 4 2025, 1:27 AM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.