api: replication: include 'hostname' field for notifications

The field contains the hostname of the host (without any domain part)
which sends the notification. This field can be used in match-field
match rules.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-06-10 10:40:26 +02:00 committed by Fabian Grünbichler
parent 2952bfe413
commit d915b69907

View File

@ -125,6 +125,8 @@ my sub _handle_job_err {
my $metadata_fields = {
type => "replication",
"job-id" => $job->{id},
# Hostname (without domain part)
hostname => PVE::INotify::nodename(),
};
eval {