HomeClusterLabs Projects

Low: tools: Fix scope/xpath parsing in cibadmin

Description

Low: tools: Fix scope/xpath parsing in cibadmin

Currently, if --xpath is specified and then --scope is specified, the
--scope optarg replaces the --xpath optarg, but the cib_xpath call
option remains set.

Since the behavior was already buggy in this situation, let's use this
as an opportunity to make the --xpath/--scope pair of arguments behave
in a last-wins manner.

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

Details

Provenance
nrwahl2Authored on Nov 22 2022, 8:22 PM
Parents
rP7099b9776675: Merge pull request #2950 from nrwahl2/nrwahl2-T106
Branches
Unknown
Tags
Unknown