HomeClusterLabs Projects

Refactor: libstonithd: Query stonith devices more clearly
da072cd95b09Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

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 Mar 12 2025, 7:43 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.