HomeClusterLabs Projects

Refactor: libcib: Change how the xpath query in find_attr is built.

Description

Refactor: libcib: Change how the xpath query in find_attr is built.

It's possible for this function to recieve NULL for both attr_id and
attr_name, so handle that. This results in some duplication of the
strings that make up the parts of the query, but I find it much easier
to read this way.

Details

Provenance
clumensAuthored on May 5 2022, 11:19 AM
Parents
rP49400cf409e6: Refactor: libcib: Remove the attr argument to find_attr.
Branches
Unknown
Tags
Unknown