Skip to content

Commit

Permalink
Missing right curly bracket in TrueNAS-SCALE Fix.
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
TheGrandWazoo committed Apr 16, 2021
1 parent cc9707a commit 1048ee2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perl5/PVE/Storage/LunCmd/FreeNAS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1048ee2

Please sign in to comment.