HomeClusterLabs Projects

Refactor: libpacemaker: Toggle output display in pcmk__pacemakerd_status

Description

Refactor: libpacemaker: Toggle output display in pcmk__pacemakerd_status

Printing the state from within pcmk__pacemakerd_status() is convenient
if we want to output any state. However, some callers will only want to
print certain states. We already pass the state back to the caller. Now
the caller can use that to control which states get output.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Nov 1 2022, 4:47 AM
Parents
rPa5770096f5ca: Low: libpacemaker: Check conn status in pcmk__get_fencing_history()
Branches
Unknown
Tags
Unknown