]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - src/PVE/HA/NodeStatus.pm
env: switch to matcher-based notification system
[pve-ha-manager.git] / src / PVE / HA / NodeStatus.pm
index b264a367429b22c80757473ab02d02b9466b010c..e053c55070917c830a947349daed76c56c075457 100644 (file)
@@ -212,7 +212,7 @@ my $send_fence_state_email = sub {
     my $haenv = $self->{haenv};
     my $status = $haenv->read_manager_status();
 
-    my $notification_properties = {
+    my $template_data = {
        "status-data"    => {
            manager_status => $status,
            node_status    => $self->{status}
@@ -222,11 +222,18 @@ my $send_fence_state_email = sub {
        "subject"        => $subject,
     };
 
+    my $metadata_fields = {
+       type => 'fencing',
+       hostname => $node,
+    };
+
     $haenv->send_notification(
        $subject_template,
        $body_template,
-       $notification_properties
+       $template_data,
+       $metadata_fields,
     );
+
 };