HomeClusterLabs Projects

Refactor: fencer: Match primitive XPath only with ID

Description

Refactor: fencer: Match primitive XPath only with ID

An ID is required when schema validation is enabled anyway, and this
allows us to be sure rsc_id will be non-NULL within the block. It also
allows us to shorten some strstr() searches by starting later in the
string, not that this will matter in practice.

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

Details

Provenance
nrwahl2Authored on Sun, Mar 30, 3:35 PM
Parents
rPb26591d4489e: Refactor: fencer: Best practices in update_cib_stonith_devices()
Branches
Unknown
Tags
Unknown