[pve-devel] applied: [PATCH manager v7 07/19] api: replication: include 'hostname' field for notifications

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Jul 4 15:08:59 CEST 2024


and this one as well..

Quoting Lukas Wagner (2024-06-10 10:40:26)
> 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 at proxmox.com>
> ---
>  PVE/API2/Replication.pm | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm
> index 6208a1a2..e4a7180f 100644
> --- a/PVE/API2/Replication.pm
> +++ b/PVE/API2/Replication.pm
> @@ -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 {
> -- 
> 2.39.2
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
>




More information about the pve-devel mailing list