HomeClusterLabs Projects

Fix: libpe_status: Close the list that pe__resource_history_xml makes.

Description

Fix: libpe_status: Close the list that pe__resource_history_xml makes.

I previously thought there was no need to deal with the as_header
parameter to this XML output function. However, in print_node_history
in crm_mon, the branch that prints out history instead of operations
will open a new list. This list never gets closed anywhere which means
any other XML nodes will end up being children of that list, which is
not correct.

So just use as_header to determine whether or not the list should
immediately be closed or not.

Details

Provenance
clumensAuthored on Feb 14 2020, 10:35 AM
Parents
rP435889f8e659: Fix: tools: Don't display an empty "Migration Summary" header.
Branches
Unknown
Tags
Unknown

Event Timeline