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

Peter Krempa posted 7 patches 5 years, 1 month ago
[PATCH 4/7] schema: domaincommon: Remove pointless 'choice' from 'inituser'/'initgroup'
Posted by Peter Krempa 5 years, 1 month ago
'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@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