Don't reject conf with old parameters (Closes: #1048)

This commit is contained in:
Xavier Guimard 2016-06-24 10:33:17 +00:00
parent 4b8b5b7606
commit 41e2be351f

View File

@ -912,7 +912,11 @@ sub _unitTest {
hdebug("Testing $key");
my $attr = $attrs->{$key};
my $type = $types->{ $attr->{type} };
die "Unkown type $attr->{type}" unless ( $type or $attr->{test} );
unless ( $type or $attr->{test} ) {
print STDERR "Unknown attribute $key, deleting it\n";
delete $conf->{$key};
next;
}
if ( $attr->{type} and $attr->{type} eq 'subContainer' ) {