Compare commits

...

2 Commits

Author SHA1 Message Date
Christoph Klaffl 2097e58295
Merge 3942254e30 into 2259625b08 2024-09-25 21:41:43 -04:00
Christoph Klaffl 3942254e30
ignore duplicate template keys 2024-09-20 07:38:12 +02:00
1 changed files with 6 additions and 0 deletions

6
sanoid
View File

@ -1008,6 +1008,12 @@ sub init {
}
if ($args{'debug'}) { print "DEBUG: overriding $key on $section with value from user-defined template $template.\n"; }
$config{$section}{$key} = $ini{$template}{$key};
my $value = $config{$section}{$key};
if (ref($value) eq 'ARRAY') {
# handle duplicates silently (warning was already printed above)
$config{$section}{$key} = $value->[0];
}
}
}
}