fix pbs backups of templates/vms without disks

fingerprint is now given with an environment variable not as parameter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-06-03 14:28:22 +02:00 committed by Thomas Lamprecht
parent 35171ddb0d
commit 77b24c6267

View 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;