scstadmin: Restore support for setting write-only attributes (merge r8915 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.4.x@8918 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-05-15 15:47:51 +00:00
parent eb8d5f0825
commit 26099e2407

View File

@@ -5883,9 +5883,8 @@ sub cacheAttributes {
my $value = $$attributes{$attribute}->{'value'};
# Write-only attributes (e.g. abort_isp) do not have
# a value.
if (defined($value)) {
$cache{$attribute}->{$value} = FALSE;
}
$value = "" if (!defined($value));
$cache{$attribute}->{$value} = FALSE;
}
}