]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schemas: Allow <unique_id/> to be zero
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Sep 2021 11:21:33 +0000 (13:21 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 21 Sep 2021 12:12:34 +0000 (14:12 +0200)
The value of zero is valid <unique_id/> (see
virNodeDeviceGetSCSIHostCaps()) but our RNG does not think so.
Switching the type to 'unsignedInt' does allow value of zero.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/schemas/nodedev.rng

index 4ad6708b70a6a021155fca39ec1653c13358ab0c..e089e66858809313759b5a037d07c6db468d992a 100644 (file)
 
     <optional>
       <element name="unique_id">
-        <ref name="positiveInteger"/>
+        <ref name="unsignedInt"/>
       </element>
     </optional>