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

Michal Privoznik posted 3 patches 4 years, 4 months ago
[PATCH 3/3] schemas: Allow <unique_id/> to be zero
Posted by Michal Privoznik 4 years, 4 months ago
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>
---
 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