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:
Bart Van Assche
2011-06-19 06:22:10 +00:00
parent 5f6f010587
commit a3895ced49

View File

@@ -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) {