HomeClusterLabs Projects

Refactor: libcrmcommon: Functionize xml_log_patchset_header()

Description

Refactor: libcrmcommon: Functionize xml_log_patchset_header()

The header is part of the patchset for both patch formats, so log it via
function call from within the v1 and v2 loggers instead of from the
setup code.

Also use a switch in xml_log_patchset() and catch bad formats.

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

Details

Provenance
nrwahl2Authored on Dec 20 2022, 3:38 PM
Parents
rPdd17e4da88f5: Refactor: libcrmcommon: Split xml_log_patchset() into v1 and v2
Branches
Unknown
Tags
Unknown