[PATCH 4/7] schema: domaincommon: Remove pointless 'choice' from 'inituser'/'initgroup'

Peter Krempa pkrempa at redhat.com
Wed Jan 6 16:57:58 UTC 2021


'genericName' allows arbitrary numeric strings so using an explicit
'unsignedInt' choice is pointless. The elements take an username or a
uid which is prefixed by '+', both of which are covered by
'genericName'.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 docs/schemas/domaincommon.rng | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 24b4994670..bcbaee9db8 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -436,16 +436,10 @@
         </optional>
         <optional>
           <element name="inituser">
-            <choice>
-              <ref name="unsignedInt"/>
-              <ref name="genericName"/>
-            </choice>
+            <ref name="genericName"/>
           </element>
           <element name="initgroup">
-            <choice>
-              <ref name="unsignedInt"/>
-              <ref name="genericName"/>
-            </choice>
+            <ref name="genericName"/>
           </element>
         </optional>
       </interleave>
-- 
2.29.2




More information about the libvir-list mailing list