Merge pull request #267 from phreaker0/fix-recursive-parsing

parse values for recursive key like the others booleans, previously a…
This commit is contained in:
Jim Salter 2018-12-04 15:57:54 -05:00 committed by GitHub
commit b5dcb699f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
sanoid
View File

@ -846,12 +846,12 @@ sub init {
# how 'bout some recursion? =)
my @datasets;
if ($ini{$section}{'recursive'} || $ini{$section}{'skip_children'}) {
if (grep( /^$ini{$section}{'recursive'}$/, @istrue ) || grep( /^$ini{$section}{'skip_children'}$/, @istrue )) {
@datasets = getchilddatasets($config{$section}{'path'});
DATASETS: foreach my $dataset(@datasets) {
chomp $dataset;
if ($ini{$section}{'skip_children'}) {
if (grep( /^$ini{$section}{'skip_children'}$/, @istrue )) {
if ($args{'debug'}) { print "DEBUG: ignoring $dataset.\n"; }
delete $config{$dataset};
next DATASETS;