HomeClusterLabs Projects

Refactor: libcrmcommon: Clean up add_schema_by_version()

Description

Refactor: libcrmcommon: Clean up add_schema_by_version()

The main change is to drop transform_expected argument, and simply call
add_schema() directly if that argument would have been false.

Other changes include:

  • Rename xslt variable to path
  • Rename s variable to sb
  • Reduce variable scopes
  • Improve comments
  • Drop redundant ".xsl" from log messages (path must already contain it)

This will simplify further in upcoming commits.

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

Details

Provenance
nrwahl2Authored on Jun 29 2024, 5:49 PM
Parents
rP4de9c5ff4883: Merge pull request #3550 from nrwahl2/nrwahl2-xsl_transform2
Branches
Unknown
Tags
Unknown