]> xenbits.xensource.com Git - libvirt.git/commitdiff
Make drive unit attribute optional in the XML schema
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 13 Jan 2012 03:39:23 +0000 (14:39 +1100)
committerEric Blake <eblake@redhat.com>
Fri, 13 Jan 2012 22:12:06 +0000 (15:12 -0700)
The "unit" attribute of a drive address is optional in the code, so should
also be in the XML schema.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
docs/schemas/domaincommon.rng

index db02603cd267a8b378d6609bf11b91904fc58ad7..6d265f3c2c71b06799fe78eaabec52b05fbf19d6 100644 (file)
         <ref name="driveBus"/>
       </attribute>
     </optional>
-    <attribute name="unit">
-      <ref name="driveUnit"/>
-    </attribute>
+    <optional>
+      <attribute name="unit">
+        <ref name="driveUnit"/>
+      </attribute>
+    </optional>
   </define>
   <define name="virtioserialaddress">
     <attribute name="controller">