HomeClusterLabs Projects

Low: tools: show detailed message with crm_resource --force-* failure

Description

Low: tools: show detailed message with crm_resource --force-* failure

Previously, cli_resource_execute_from_params() output the
"resource-agent-action" message (with a detailed action result) only if
services_action_sync() returned true.

However that returns true only when the action exit status is 0, which is
actually the less interesting case for a detailed message. Now, output the
message regardless of the return value, so users can see details for nonzero
exit statuses.

Details

Provenance
kgaillotAuthored on Sep 30 2021, 12:13 PM
Parents
rP2e3b19794d59: Refactor: tools: create action sooner for crm_resource --force-*
Branches
Unknown
Tags
Unknown

Event Timeline