HomeClusterLabs Projects

Refactor: libcrmcommon: Further simplify replace_xml_child()

Description

Refactor: libcrmcommon: Further simplify replace_xml_child()

More readability improvements. Improve variable names, limit scope of
right_val/child_val, minimize setting and unsetting of match boolean,
add comments, add tracing on matches.

Drop the "Cannot delete the search root" debug message because it's not
terribly helpful and I'd rather avoid trying to match the search root in
the first place.

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

Details

Provenance
nrwahl2Authored on Feb 11 2024, 4:43 PM
Parents
rPa892513ade5b: Refactor: libcrmcommon: Simplify replace_xml_child() somewhat
Branches
Unknown
Tags
Unknown