HomeClusterLabs Projects

Refactor: tools: Take pcmk_node_t in cli_resource_fail()

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
Parents
rP49b2421b8b7a: Refactor: tools: Take pcmk_node_t in cli_resource_move()
Branches
Unknown
Tags
Unknown