HomeClusterLabs Projects

Low: tools: handle crm_resource --force-* failures consistently

Description

Low: tools: handle crm_resource --force-* failures consistently

Previously, for unsupported standards and failed action creation,
cli_resource_execute_from_params() output a unique error message then exited
immediately, which mean it did not get main()'s generic message printed for all
options, or its memory clean-up.

Now, just set the result properly in those cases, and output the standard
"resource-agent-action" message used for other results, and return to main for
the generic message and proper clean-up.

Also, ensure we always free the action we created.

Details

Provenance
kgaillotAuthored on Sep 28 2021, 1:14 PM
Parents
rPec0246c8805b: Refactor: libcrmservice: expose services__set_result() internally
Branches
Unknown
Tags
Unknown

Event Timeline