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:
parent
2952bfe413
commit
d915b69907
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user