HomeClusterLabs Projects

Refactor: tools: Drop last unneeded host_uname uses in crm_resource.c

Description

Refactor: tools: Drop last unneeded host_uname uses in crm_resource.c

It would remain a little simpler to use options.host_uname for the calls
to cli_resource_print_operations(). In those cases, we use the node
object just for consistency, since we've virtually done away with
options.host_uname uses otherwise.

For the cmd_why case, note that is_scheduler_required() returns true. So
scheduler != NULL. Then in the
"if ((options.host_uname != NULL) && (scheduler != NULL)) {" block, we
ensure node != NULL if options.host_uname != NULL.

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

Details

Provenance
nrwahl2Authored on Tue, Mar 4, 2:00 AM
Parents
rP8f9264515701: Refactor: tools: Drop node NULL check for crm_resource --digests
Branches
Unknown
Tags
Unknown