Manage unopened doublehash keys (#1025)
This commit is contained in:
parent
7be4088df1
commit
71f8eb589d
|
@ -692,11 +692,10 @@ sub _scanNodes {
|
|||
: ()
|
||||
);
|
||||
$self->newConf->{$name} = {};
|
||||
if ( ref( $leaf->{data} ) ne 'ARRAY' ) {
|
||||
push @{ $self->errors },
|
||||
{ message => $leaf->{title}
|
||||
. ": double hash doesn't push an array, aborting" };
|
||||
return 0;
|
||||
unless ( defined $leaf->{data} ) {
|
||||
hdebug(' unopened');
|
||||
$self->newConf->{$name} = $self->refConf->{$name};
|
||||
next;
|
||||
}
|
||||
foreach my $getHost ( @{ $leaf->{data} } ) {
|
||||
my $change = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user