HomeClusterLabs Projects

Fix: tools: map LSB status to OCF correctly with crm_resource --force-check

Description

Fix: tools: map LSB status to OCF correctly with crm_resource --force-check

Previously, cli_resource_execute_from_params() mapped LSB status results to OCF
only if services_action_sync() returned true. However, that returns true only
when the exit status is 0, so no other exit statuses would be mapped.

Also, if services_action_sync() returned false, the code unnecessarily checked
whether the exit status was 0, which would be a true return. Since we use the
exit status directly, we don't need to check the services_action_sync() return
value at all.

Details

Provenance
kgaillotAuthored on Sep 30 2021, 12:03 PM
Parents
rP96b6eb4d5d09: Low: tools: show detailed message with crm_resource --force-* failure
Branches
Unknown
Tags
Unknown

Event Timeline