instead of storage config to determine whether we are in 'PBS mode'
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
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);
my $userns_cmd = $task->{userns_cmd};
- if ($opts->{scfg}->{type} eq 'pbs') {
+ if ($self->{vzdump}->{opts}->{pbs}) {
my $rootdir = $default_mount_point;
my $param = [];