schema: Fix TPM version rules

According to our parser (virDomainTPMDefParseXML()) the version
is an optional attribute and independent of TPM backend type.
Therefore, it's not a choice group, which is what our RNG schema
suggests.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
Michal Privoznik 2021-01-06 11:50:56 +01:00
parent ec554e160b
commit 3ae6f5e10e

View File

@ -4776,18 +4776,14 @@
</optional> </optional>
</group> </group>
</choice> </choice>
<choice> <optional>
<group> <attribute name="version">
<optional> <choice>
<attribute name="version"> <value>1.2</value>
<choice> <value>2.0</value>
<value>1.2</value> </choice>
<value>2.0</value> </attribute>
</choice> </optional>
</attribute>
</optional>
</group>
</choice>
</element> </element>
</define> </define>