From 1048ee23a7e05dde08769cc21ee4c690766a988e Mon Sep 17 00:00:00 2001 From: Kevin Scott Adams Date: Thu, 15 Apr 2021 20:24:42 -0400 Subject: [PATCH] Missing right curly bracket in TrueNAS-SCALE Fix. - Added a '}' at line 515. - Fixes issues reported in #98 abd #75. - freenas-proxmox-packer also fixed. The stable build directory somehow was moved to the development building directory. --- perl5/PVE/Storage/LunCmd/FreeNAS.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl5/PVE/Storage/LunCmd/FreeNAS.pm b/perl5/PVE/Storage/LunCmd/FreeNAS.pm index ace1489..08786b4 100644 --- a/perl5/PVE/Storage/LunCmd/FreeNAS.pm +++ b/perl5/PVE/Storage/LunCmd/FreeNAS.pm @@ -512,6 +512,7 @@ sub freenas_iscsi_create_extent { $name =~ s/^.*\///; # all from last / if ($product_name eq "TrueNAS-SCALE") { $scfg->{'pool'} =~ s/\//-/; + } $name = $scfg->{'pool'} . ($product_name eq "TrueNAS-SCALE" ? '-' : '/') . $name; my $device = $lun_path;