diff --git a/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm b/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm index be4576410..47523d126 100644 --- a/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm +++ b/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm @@ -768,10 +768,14 @@ sub aluaAttributes { my $io = new IO::File $pPath, O_RDONLY; if (!$io) { - return (undef, "deviceGroupsAttributes(): Unable to read device attribute '$attribute': $!"); + return (undef, "aluaAttributes(): Unable to read device attribute '$attribute': $!"); } my $value = <$io>; + if (!defined($value)) { + $value = ""; + } + chomp $value; my $second_line = <$io>;