]> git.proxmox.com Git - pve-guest-common.git/commitdiff
vzdump: common: allow 'job-id' as a parameter without being in schema
authorLukas Wagner <l.wagner@proxmox.com>
Mon, 8 Jul 2024 09:38:00 +0000 (11:38 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Jul 2024 17:11:29 +0000 (19:11 +0200)
'job-id' is passed when a backup as started as a job and will be
passed to the notification system as matchable metadata. It
can be considered 'internal'.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
src/PVE/VZDump/Common.pm

index 1996c5b48dc2c1cc04e61b00ed1b9a07c0322c8c..2532b42bd535cbb6d3e6e5e0db257de3b68c7ca1 100644 (file)
@@ -503,7 +503,7 @@ sub command_line {
 
     foreach my $p (keys %$param) {
        next if $p eq 'id' || $p eq 'vmid' || $p eq 'starttime' ||
-               $p eq 'dow' || $p eq 'stdout' || $p eq 'enabled';
+               $p eq 'dow' || $p eq 'stdout' || $p eq 'enabled' || $p eq 'job-id';
        my $v = $param->{$p};
        my $pd = $confdesc->{$p} || die "no such vzdump option '$p'\n";
        if ($p eq 'exclude-path') {