]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schema: Fix TPM version rules
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Jan 2021 10:50:56 +0000 (11:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Jan 2021 11:30:10 +0000 (12:30 +0100)
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>
docs/schemas/domaincommon.rng

index 712fb605623fa384eeff7fce4f3762a488fecaa0..86816e9b1de11ad378123d1d81662e1b35e18be7 100644 (file)
           </optional>
         </group>
       </choice>
-      <choice>
-        <group>
-          <optional>
-            <attribute name="version">
-              <choice>
-                <value>1.2</value>
-                <value>2.0</value>
-              </choice>
-           </attribute>
-          </optional>
-        </group>
-      </choice>
+      <optional>
+        <attribute name="version">
+          <choice>
+            <value>1.2</value>
+            <value>2.0</value>
+          </choice>
+       </attribute>
+      </optional>
     </element>
   </define>