]> git.proxmox.com Git - qemu-server.git/commitdiff
vzdump: use new 'pbs' option
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 6 May 2020 08:57:53 +0000 (10:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 May 2020 14:20:46 +0000 (16:20 +0200)
instead of storage config to determine whether we are in 'PBS mode'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/VZDump/QemuServer.pm

index 3a990cfb7c02af949f1cb4358c77b8ac929440a5..1a0d4375968542aeb26c30a83a5bf657b99eb8d9 100644 (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);