HomeClusterLabs Projects

Refactor: libpe_status: Replace pcmk_rc_schema_validation uses

Description

Refactor: libpe_status: Replace pcmk_rc_schema_validation uses

...with more appropriate return codes -- namely EINVAL for a bad
argument (developer mistake) or pcmk_rc_unpack_error for a failure in
parsing the CIB. pcmk_rc_schema_validation is more properly used for an
update that doesn't conform to the configured schema.

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

Details

Provenance
nrwahl2Authored on Aug 25 2022, 3:47 PM
Parents
rP73a46d1ab48b: Feature: libcrmcommon: Add pcmk_rc_unpack_error return code
Branches
Unknown
Tags
Unknown