HomeClusterLabs Projects

Refactor: tools: Update output format handling in mon_refresh_display.

Description

Refactor: tools: Update output format handling in mon_refresh_display.

If the output format is nothing useful, just return. There's no point
in doing everything else in the function just to throw it away.

Then, get rid of the error handling if writing the output HTML file
fails. This wouldn't get run anyway. The cluster-status output message
always returns pcmk_rc_ok, and the error this block is trying to handle
would actually happen when pcmk__output_new is called.

With that done, we're basically just deciding between printing the
simple monitor format or any of the more complex output formats, all of
which can be handled by the same function call.

Details

Provenance
clumensAuthored on Jan 13 2022, 1:20 PM
Parents
rP58dccbae0017: Merge pull request #2635 from wenningerk/subdaemon_heartbeat_mod_libqb
Branches
Unknown
Tags
Unknown

Event Timeline