mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 01:01:27 +00:00
scstadmin(sysfs): Make writing top-level non-key attributes work. Do not indent these attributes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3595 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1002,10 +1002,10 @@ sub writeConfiguration {
|
||||
|
||||
if (!$$attributes{$attribute}->{'static'}) {
|
||||
if (defined($$attributes{$attribute}->{'keys'})) {
|
||||
foreach my $key (@{$$attributes{$attribute}->{'keys'}}) {
|
||||
foreach my $key (%{$$attributes{$attribute}->{'keys'}}) {
|
||||
my $value = $$attributes{$attribute}->{'keys'}->{$key}->{'value'};
|
||||
$value = "\"$value\"" if ($value =~ / /);
|
||||
print $io "\t$attribute $value\n"
|
||||
print $io "$attribute $value\n"
|
||||
if (defined($value) && ($value ne ''));
|
||||
}
|
||||
} elsif ($nonkey) {
|
||||
|
||||
Reference in New Issue
Block a user