Re: [PATCH] docs: Only one secret is in vol instead of zero or more

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/12/18 3:54 AM, Han Han wrote:
> Referring to commit fab2e49d, it should be one and only secret for encryption.
> 
> Signed-off-by: Han Han <hhan@xxxxxxxxxx>
> ---
>  docs/schemas/storagecommon.rng | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/docs/schemas/storagecommon.rng b/docs/schemas/storagecommon.rng
> index 9d17d934de..63b51470a0 100644
> --- a/docs/schemas/storagecommon.rng
> +++ b/docs/schemas/storagecommon.rng
> @@ -24,9 +24,7 @@
>          </choice>
>        </attribute>
>        <interleave>
> -        <zeroOrMore>
> -          <ref name='secret'/>
> -        </zeroOrMore>
> +        <ref name='secret'/>
>          <optional>
>            <element name='cipher'>
>              <ref name='keycipher'/>
> 

So we parse multiple <secret/> elements but later in the code there are
several checks to make sure only one was actually parsed. It has been
like this since secrets were introduced.

Anyway, your patch is correct. ACKed and pushed.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux