[libvirt] [PATCH 08/11] schemas: backup: Remove pointless <choice> for 'name' of backup disk

Peter Krempa pkrempa at redhat.com
Fri Dec 20 13:25:26 UTC 2019


One of the first versions thought of using disk path as the second
option but this was dropped as being a legacy interface. Remove the
leftover pointless <choice> wrapper for the disk name as there's just
one option now.

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

diff --git a/docs/schemas/domainbackup.rng b/docs/schemas/domainbackup.rng
index 7286acb18c..c1e4d80302 100644
--- a/docs/schemas/domainbackup.rng
+++ b/docs/schemas/domainbackup.rng
@@ -104,9 +104,7 @@
         <oneOrMore>
           <element name='disk'>
             <attribute name='name'>
-              <choice>
-                <ref name='diskTarget'/>
-              </choice>
+              <ref name='diskTarget'/>
             </attribute>
             <choice>
               <group>
@@ -165,9 +163,7 @@
         <oneOrMore>
           <element name='disk'>
             <attribute name='name'>
-              <choice>
-                <ref name='diskTarget'/>
-              </choice>
+              <ref name='diskTarget'/>
             </attribute>
             <choice>
               <group>
-- 
2.23.0




More information about the libvir-list mailing list