mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05: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:
1 parent
2ee82b3dfb
commit
19c8da1d4c
1 file changed
+13
-11
@@ -24,17 +24,19 @@
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
<interleave>
|
||||
<ref name="secret"/>
|
||||
<optional>
|
||||
<element name="cipher">
|
||||
<ref name="keycipher"/>
|
||||
</element>
|
||||
<element name="ivgen">
|
||||
<ref name="keyivgen"/>
|
||||
</element>
|
||||
</optional>
|
||||
</interleave>
|
||||
<optional>
|
||||
<interleave>
|
||||
<ref name="secret"/>
|
||||
<optional>
|
||||
<element name="cipher">
|
||||
<ref name="keycipher"/>
|
||||
</element>
|
||||
<element name="ivgen">
|
||||
<ref name="keyivgen"/>
|
||||
</element>
|
||||
</optional>
|
||||
</interleave>
|
||||
</optional>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
|
||||
Reference in new issue
Block a user