mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
2ee82b3dfb
commit
19c8da1d4c
@ -24,17 +24,19 @@
|
|||||||
</choice>
|
</choice>
|
||||||
</attribute>
|
</attribute>
|
||||||
</optional>
|
</optional>
|
||||||
<interleave>
|
<optional>
|
||||||
<ref name="secret"/>
|
<interleave>
|
||||||
<optional>
|
<ref name="secret"/>
|
||||||
<element name="cipher">
|
<optional>
|
||||||
<ref name="keycipher"/>
|
<element name="cipher">
|
||||||
</element>
|
<ref name="keycipher"/>
|
||||||
<element name="ivgen">
|
</element>
|
||||||
<ref name="keyivgen"/>
|
<element name="ivgen">
|
||||||
</element>
|
<ref name="keyivgen"/>
|
||||||
</optional>
|
</element>
|
||||||
</interleave>
|
</optional>
|
||||||
|
</interleave>
|
||||||
|
</optional>
|
||||||
</element>
|
</element>
|
||||||
</define>
|
</define>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user