HomeClusterLabs Projects

Feature: tools: cibadmin ignores --node-path for non-XPath-query command

Description

Feature: tools: cibadmin ignores --node-path for non-XPath-query command

The output printing logic didn't make sense for the output of other
commands. It made a recursive call under the assumption that the
top-level output element was PCMK__XE_XPATH_QUERY.

Full recursion is also unnecessary. Based on the structure of the
output, we only need to go one level deep, and we only need to look for
PCMK__XE_XPATH_QUERY_PATH elements.

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

Details

Provenance
nrwahl2Authored on Fri, Jul 25, 1:51 AM
Parents
rPfa5a52e54615: Refactor: tools: Clean up cibadmin.c:print_xml_output()
Branches
Unknown
Tags
Unknown