schemas: rng: Make secret optional in storage vol

For a qcow2 storage volume with luks encryption created by qemu-img, its
dumped storage vol XML has no secret element in encryption:
<volume type='file'>
    ...
    <encryption format='luks'>
    </encryption>
    ...
</volume>

That will cause a failure in rng validation. Fix that validation failure.

Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Han Han 2022-07-06 10:42:02 +08:00 committed by Michal Privoznik
parent 2ee82b3dfb
commit 19c8da1d4c

View File

@ -24,6 +24,7 @@
</choice>
</attribute>
</optional>
<optional>
<interleave>
<ref name="secret"/>
<optional>
@ -35,6 +36,7 @@
</element>
</optional>
</interleave>
</optional>
</element>
</define>