trim config values

This commit is contained in:
Christoph Klaffl 2023-07-25 22:56:25 +02:00
parent 91a960ffc5
commit 7ab0ac0cf6
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 2 additions and 0 deletions

2
sanoid
View File

@ -905,6 +905,8 @@ sub init {
warn "duplicate key '$key' in section '$section', using the value from the first occurence and ignoring the others.\n";
$ini{$section}{$key} = $value->[0];
}
# trim
$ini{$section}{$key} =~ s/^\s+|\s+$//g;
}
if ($section =~ /^template_/) { next; } # don't process templates directly