]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schemas: Allow templateFormat without template path
authorAndrea Bolognani <abologna@redhat.com>
Wed, 26 Nov 2025 17:18:06 +0000 (18:18 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 8 Jan 2026 23:26:16 +0000 (00:26 +0100)
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>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/schemas/domaincommon.rng

index 5d5fd87f87156da31e18a8552e33344ae54e442b..114dd3f96f6f73fbd81861431fb3476042b2cd95 100644 (file)
                 <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"/>