]> git.ipfire.org Git - thirdparty/libvirt.git/commit
schemas: rng: Make secret optional in storage vol
authorHan Han <hhan@redhat.com>
Wed, 6 Jul 2022 02:42:02 +0000 (10:42 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Jul 2022 10:18:17 +0000 (12:18 +0200)
commit19c8da1d4c529fc455941740fbcf6c1903b038a5
treeae5bede9f47f3e26d458daf5ffe70168fbc1e6a7
parent2ee82b3dfb4e3142a2251a46446199b124fc2704
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>
src/conf/schemas/storagecommon.rng