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.csa...@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@pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to