[PATCH 3/3] schemas: Allow <unique_id/> to be zero

Michal Privoznik mprivozn at redhat.com
Thu Sep 16 11:56:27 UTC 2021


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 at redhat.com>
---
 docs/schemas/nodedev.rng | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/schemas/nodedev.rng b/docs/schemas/nodedev.rng
index 4ad6708b70..e089e66858 100644
--- a/docs/schemas/nodedev.rng
+++ b/docs/schemas/nodedev.rng
@@ -443,7 +443,7 @@
 
     <optional>
       <element name="unique_id">
-        <ref name="positiveInteger"/>
+        <ref name="unsignedInt"/>
       </element>
     </optional>
 
-- 
2.32.0




More information about the libvir-list mailing list