HomeClusterLabs Projects

Fix: schemas: crm_resource --validate validation fails

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Fix: schemas: crm_resource --validate validation fails

In case of an error, the output of crm_resource --validate fails to
validate (if validate-all does not output XML). This is because if a
<choice> contains two elements with the same name in a RelaxNG schema,
only the first occurrence is honored and the rest are ignored. (This
does not seem to be documented clearly; it's a conclusion based on
experimentation.)

The solution is to create just one <element> that contains a <choice>
(instead of a <choice> that contains two <element>s).

Closes RHBZ#2123727

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

Details

Provenance
nrwahl2Authored on Sep 4 2022, 4:15 AM

Commit No Longer Exists

This commit no longer exists in the repository.