HomeClusterLabs Projects

Refactor: libstonithd: Query stonith devices more clearly

Description

Refactor: libstonithd: Query stonith devices more clearly

Previously, we performed an XPath search that gets all "agent"
attributes. But for XPath search results that are not element nodes,
getXpathResult() returns an element (or NULL). In the case of an
attribute, it returns the attribute's parent element.

This is not at all clear. So instead, we now directly search for
elements that possess an "agent" attribute.

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

Details

Provenance
nrwahl2Authored on Wed, Mar 12, 7:43 PM
Parents
rP96801aab333a: Refactor: libcrmcommon: Make xml_element_type_text() library-private
Branches
Loading...
Tags
Loading...