scstadmin: Improve handling of write-only ALUA attributes

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-02-16 17:47:12 +00:00
parent 64b7f7057d
commit 1d85efa936

View File

@@ -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>;