The get_targets API endpoint is now implemented in Rust. Signed-off-by: Lukas Wagner <l.wag...@proxmox.com> --- PVE/API2/Cluster/Notifications.pm | 34 +------------------------------ 1 file changed, 1 insertion(+), 33 deletions(-)
diff --git a/PVE/API2/Cluster/Notifications.pm b/PVE/API2/Cluster/Notifications.pm index 68fdda2a..10b611c9 100644 --- a/PVE/API2/Cluster/Notifications.pm +++ b/PVE/API2/Cluster/Notifications.pm @@ -170,39 +170,7 @@ __PACKAGE__->register_method ({ my $config = PVE::Notify::read_config(); my $targets = eval { - my $result = []; - - for my $target (@{$config->get_sendmail_endpoints()}) { - push @$result, { - name => $target->{name}, - comment => $target->{comment}, - type => 'sendmail', - disable => $target->{disable}, - origin => $target->{origin}, - }; - } - - for my $target (@{$config->get_gotify_endpoints()}) { - push @$result, { - name => $target->{name}, - comment => $target->{comment}, - type => 'gotify', - disable => $target->{disable}, - origin => $target->{origin}, - }; - } - - for my $target (@{$config->get_smtp_endpoints()}) { - push @$result, { - name => $target->{name}, - comment => $target->{comment}, - type => 'smtp', - disable => $target->{disable}, - origin => $target->{origin}, - }; - } - - $result + $config->get_targets(); }; raise_api_error($@) if $@; -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel