[pve-devel] applied: [PATCH manager v5 01/16] api: notifications: add 'smtp' to target index

Fiona Ebner f.ebner at proxmox.com
Fri Apr 19 12:47:35 CEST 2024


Am 15.04.24 um 10:25 schrieb Lukas Wagner:
> Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
> ---
>  PVE/API2/Cluster/Notifications.pm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/PVE/API2/Cluster/Notifications.pm b/PVE/API2/Cluster/Notifications.pm
> index 7047f0b1..68fdda2a 100644
> --- a/PVE/API2/Cluster/Notifications.pm
> +++ b/PVE/API2/Cluster/Notifications.pm
> @@ -107,6 +107,7 @@ __PACKAGE__->register_method ({
>  	my $result = [
>  	    { name => 'gotify' },
>  	    { name => 'sendmail' },
> +	    { name => 'smtp' },
>  	];
>  
>  	return $result;
> @@ -143,7 +144,7 @@ __PACKAGE__->register_method ({
>  		'type' => {
>  		    description => 'Type of the target.',
>  		    type  => 'string',
> -		    enum => [qw(sendmail gotify)],
> +		    enum => [qw(sendmail gotify smtp)],
>  		},
>  		'comment' => {
>  		    description => 'Comment',

applied this fix already, thanks!




More information about the pve-devel mailing list