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 <[email protected]>
---
 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

Reply via email to