HomeClusterLabs Projects

Refactor: various: Limit xmlSetProp() to pcmk__xe_set_attr_force()

Description

Refactor: various: Limit xmlSetProp() to pcmk__xe_set_attr_force()

This facilitates refactoring private data allocation/deallocation.

This is basically a backport of e8bb4fad. However, the 2.1 branch still
has some extra legacy functions that are confusing -- especially
related to v1 patchsets. Rather than try to be certain that ACLs and
change tracking are disabled so that we can use crm_xml_add(), we create
the new function pcmk__xe_set_attr_force() that simply wraps
xmlSetProp().

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

Details

Provenance
nrwahl2Authored on Tue, Sep 3, 11:45 PM
Parents
rP5af31585adbd: Refactor: libcrmcommon: New pcmk__xml_free_doc()
Branches
Unknown
Tags
Unknown