]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - src/PVE/HA/Env.pm
manager: send notifications via new notification module
[pve-ha-manager.git] / src / PVE / HA / Env.pm
index 16603ec78ec4ef85a39ac37640e9cd1529d58741..b7060a43e5bc025a1587ef587fc8169184dbfe41 100644 (file)
@@ -144,10 +144,10 @@ sub log {
     return $self->{plug}->log($level, @args);
 }
 
-sub sendmail {
-    my ($self, $subject, $text) = @_;
+sub send_notification {
+    my ($self, $subject, $text, $properties) = @_;
 
-    return $self->{plug}->sendmail($subject, $text);
+    return $self->{plug}->send_notification($subject, $text, $properties);
 }
 
 # acquire a cluster wide manager lock