HomeClusterLabs Projects

Refactor: libcrmcommon: move validation to apply_upgrade()

Description

Refactor: libcrmcommon: move validation to apply_upgrade()

Previously, apply_upgrade() applied the XSL transforms but did not verify the
result validated. update_validation() called apply_upgrade() then verified the
result.

It makes more sense to do the validation in apply_upgrade() since the upgrade
did not succeed if the result does not validate. This changes the return value
from pcmk_err_schema_validation to pcmk_err_transform_failed, but that actually
makes more sense.

Details

Provenance
kgaillotAuthored on Apr 18 2024, 11:58 AM
Parents
rP14b3f6bf00f0: Log: libcrmcommon: improve apply_upgrade() messages
Branches
Unknown
Tags
Unknown