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.
This commit is contained in:
Kevin Scott Adams 2021-04-15 20:24:42 -04:00
parent cc9707a14c
commit 1048ee23a7
1 changed files with 1 additions and 0 deletions

View File

@ -512,6 +512,7 @@ sub freenas_iscsi_create_extent {
$name =~ s/^.*\///; # all from last / $name =~ s/^.*\///; # all from last /
if ($product_name eq "TrueNAS-SCALE") { if ($product_name eq "TrueNAS-SCALE") {
$scfg->{'pool'} =~ s/\//-/; $scfg->{'pool'} =~ s/\//-/;
}
$name = $scfg->{'pool'} . ($product_name eq "TrueNAS-SCALE" ? '-' : '/') . $name; $name = $scfg->{'pool'} . ($product_name eq "TrueNAS-SCALE" ? '-' : '/') . $name;
my $device = $lun_path; my $device = $lun_path;