[libvirt] [PATCH 1/5] docs: Refactor schema for 'resizing' attribute

Andrea Bolognani abologna at redhat.com
Tue Jan 23 15:45:00 UTC 2018


We're going to use the same attribute for two elements, so it
makes sense to give it its own stand-alone definition.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 docs/schemas/domaincommon.rng | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index f22c932f6..75838b581 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -4952,13 +4952,7 @@
 
   <define name="hpt">
     <element name="hpt">
-      <attribute name="resizing">
-        <choice>
-          <value>enabled</value>
-          <value>disabled</value>
-          <value>required</value>
-        </choice>
-      </attribute>
+      <ref name="resizing"/>
     </element>
   </define>
 
@@ -5740,6 +5734,16 @@
     </attribute>
   </define>
 
+  <define name="resizing">
+    <attribute name="resizing">
+      <choice>
+        <value>enabled</value>
+        <value>disabled</value>
+        <value>required</value>
+      </choice>
+    </attribute>
+  </define>
+
   <define name="capabilitiespolicy">
     <attribute name="policy">
       <choice>
-- 
2.14.3




More information about the libvir-list mailing list