HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__html_create()

Description

Refactor: libcrmcommon: New pcmk__html_create()

This function doesn't set text content, even though every caller needs
to set text content on the resulting node. The caller must set text
content separately.

This decision was made for readability -- too many positional arguments
were deemed confusing.

https://github.com/ClusterLabs/pacemaker/pull/3386#discussion_r1516997973

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

Details

Provenance
nrwahl2Authored on Feb 10 2024, 3:53 AM
Parents
rPa93af7929126: Refactor: libcrmcommon: Accept a format string in pcmk__xe_set_content()
Branches
Unknown
Tags
Unknown