Merge pull request #837 from phreaker0/trim-config-values

trim config values
This commit is contained in:
Jim Salter 2023-07-25 17:29:06 -04:00 committed by GitHub
commit 61000c9da2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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