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

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

index 2d003d0f45cf7fb04a92682cfc6b416aa5817195..45a3d8fdd3077de42b8154dbbc09dd6f0d543e5a 100644 (file)
@@ -303,7 +303,7 @@ sub assemble {
     my $firewall ="/etc/pve/firewall/$vmid.fw";
     my $fwconftmp = "$tmpdir/etc/vzdump/pct.fw";
 
-    if ($opts->{scfg}->{type} eq 'pbs') {
+    if ($self->{vzdump}->{opts}->{pbs}) {
        # fixme: do not store pct.conf and fw.conf into $tmpdir
        if (-e  $firewall) {
            PVE::Tools::file_copy($firewall, $fwconftmp);
@@ -356,7 +356,7 @@ sub archive {
 
     my $userns_cmd = $task->{userns_cmd};
 
-    if ($opts->{scfg}->{type} eq 'pbs') {
+    if ($self->{vzdump}->{opts}->{pbs}) {
 
        my $rootdir = $default_mount_point;
        my $param = [];