[pve-devel] applied: [PATCH manager] fix #2462: ACMEAccount: make tos in get_tos optional
Fabian Grünbichler
f.gruenbichler at proxmox.com
Fri Nov 22 12:20:17 CET 2019
On November 13, 2019 10:15 am, Dominik Csapak wrote:
> the code returns undef in case there is no 'tos', and the code
> calling this api call handles a non-existing tos already, but
> fails in that case becasue of the failing return value verification
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> PVE/API2/ACMEAccount.pm | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/PVE/API2/ACMEAccount.pm b/PVE/API2/ACMEAccount.pm
> index 90620dea..29d5dcf3 100644
> --- a/PVE/API2/ACMEAccount.pm
> +++ b/PVE/API2/ACMEAccount.pm
> @@ -322,6 +322,7 @@ __PACKAGE__->register_method ({
> },
> returns => {
> type => 'string',
> + optional => 1,
> description => 'ACME TermsOfService URL.',
> },
> code => sub {
> --
> 2.20.1
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
>
More information about the pve-devel
mailing list