HomeClusterLabs Projects

Fix: tools: Try to remove blank lines from the end of text output.

Description

Fix: tools: Try to remove blank lines from the end of text output.

This was likely due to me calling printing function A, seeing if it
printed anything out, and then adding a blank line before calling
printing function B. This left open the possibility that if function B
didn't have anything to print, a blank line would still be added first.

Instead, delay printing the blank lines until the last possible moment.
Print them out in function B only after checking that there is anything
to be printed out.

Details

Provenance
clumensAuthored on Feb 14 2020, 1:52 PM
Parents
rPda06c020a5a7: Fix: libpe_status: Close the list that pe__resource_history_xml makes.
Branches
Unknown
Tags
Unknown

Event Timeline