[PATCH 14/36] schemas: Allow templateFormat without template path

Andrea Bolognani via Devel posted 36 patches 1 week, 3 days ago
[PATCH 14/36] schemas: Allow templateFormat without template path
Posted by Andrea Bolognani via Devel 1 week, 3 days ago
Similarly to how we allow the format for the loader and the NVRAM
file to be specified without the corresponding path being present,
we should allow that to happen for the NVRAM template too.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 src/conf/schemas/domaincommon.rng | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincommon.rng
index 1f9ac102a0..c7346526ef 100644
--- a/src/conf/schemas/domaincommon.rng
+++ b/src/conf/schemas/domaincommon.rng
@@ -354,11 +354,11 @@
                 <attribute name="template">
                   <ref name="absFilePath"/>
                 </attribute>
-                <optional>
-                  <attribute name="templateFormat">
-                    <ref name="pflashFormatTypes"/>
-                  </attribute>
-                </optional>
+              </optional>
+              <optional>
+                <attribute name="templateFormat">
+                  <ref name="pflashFormatTypes"/>
+                </attribute>
               </optional>
               <optional>
                 <ref name="pflashFormat"/>
-- 
2.52.0