HomeClusterLabs Projects

Fix: libpe_status: Use the same message for headers and history.

Description

Fix: libpe_status: Use the same message for headers and history.

resource-history gets used in two places - sometimes as the header of a
list, and sometimes as the body of a list. Because colons are appended
to the text of a list header, this results in extra colons in the output
sometimes.

This patch adds an extra argument to resource-history to specify whether
it is a list header or list body. This is only needed on text/console
output.

Note also that an end_list call is removed from print_rsc_history. This
call was only present to close out the list that resource-history had
previously been unconditionally created.

Details

Provenance
clumensAuthored on Jan 23 2020, 3:01 PM
Parents
rPe20a9b23bd87: Revert almost all of 2652ac551e33fb24aefafd9ac7a09561fffbb3dc.
Branches
Unknown
Tags
Unknown

Event Timeline