[pve-devel] [PATCH manager] fix #2462: ACMEAccount: make tos in get_tos optional
Dominik Csapak
d.csapak at proxmox.com
Wed Nov 13 10:15:57 CET 2019
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
More information about the pve-devel
mailing list