]> git.proxmox.com Git - qemu-server.git/commitdiff
fix pbs backups of templates/vms without disks
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 3 Jun 2020 12:28:22 +0000 (14:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 3 Jun 2020 12:36:31 +0000 (14:36 +0200)
fingerprint is now given with an environment variable not as parameter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/VZDump/QemuServer.pm

index 1a0d4375968542aeb26c30a83a5bf657b99eb8d9..91df4552122efa51ff9f794f95604cf974bdbe0e 100644 (file)
@@ -356,6 +356,7 @@ sub archive_pbs {
        }
 
        local $ENV{PBS_PASSWORD} = $password;
+       local $ENV{PBS_FINGERPRINT} = $fingerprint if defined($fingerprint);
        my $cmd = [
            '/usr/bin/proxmox-backup-client',
            'backup',
@@ -364,7 +365,6 @@ sub archive_pbs {
            '--backup-id', "$vmid",
            '--backup-time', $task->{backup_time},
        ];
-       push @$cmd, '--fingerprint', $fingerprint if defined($fingerprint);
 
        push @$cmd, "qemu-server.conf:$conffile";
        push @$cmd, "fw.conf:$firewall" if -e $firewall;