vzdump: use new 'pbs' option

instead of storage config to determine whether we are in 'PBS mode'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2020-05-06 10:57:53 +02:00 committed by Thomas Lamprecht
parent ae194a5c5e
commit 690748632b

View File

@ -248,7 +248,7 @@ sub archive {
my $opts = $self->{vzdump}->{opts};
my $scfg = $opts->{scfg};
if ($scfg->{type} eq 'pbs') {
if ($self->{vzdump}->{opts}->{pbs}) {
$self->archive_pbs($task, $vmid);
} else {
$self->archive_vma($task, $vmid, $filename, $comp);