HomeClusterLabs Projects

Refactor: libcrmcommon: pcmk__xml_output_finish should take an exit code.

Description

Refactor: libcrmcommon: pcmk__xml_output_finish should take an exit code.

It previously did, but that was removed because the exit code was also
being used to determine whether the function should do any output or
not.

However, this means that the public libpacemaker API functions will
write out an XML block with a <status code=""> wrapper that always looks
successful. This is because pcmk__xml_output_finish previously called
out->finish with 0 for the exit code always. The actual exit code of
the process was not taken into account.

Details

Provenance
clumensAuthored on Nov 28 2023, 11:34 AM
Parents
rP5b6ae0d4f6d6: Merge pull request #3269 from wenningerk/merge_back_to_main
Branches
Unknown
Tags
Unknown