Unverified Commit e01d8813 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #933 from salaun-urennes1/fix-check_param_constraint by salaun-urennes1

2 fixes related to list families
parents bcf8ab7c 871b3796
......@@ -990,26 +990,6 @@ sub load {
$self->{'admin'}{'family_name'});
return undef;
}
my $error = $family->check_param_constraint($self);
unless ($error) {
$log->syslog(
'err',
'Impossible to check parameters constraint for list % set in status error_config',
$self->{'name'}
);
$self->set_status_error_config('no_check_rules_family',
$family->{'name'});
}
if (ref($error) eq 'ARRAY') {
$log->syslog(
'err',
'The list "%s" does not respect the rules from its family %s',
$self->{'name'},
$family->{'name'}
);
$self->set_status_error_config('no_respect_rules_family',
$family->{'name'});
}
}
}
......
......@@ -780,8 +780,9 @@ if ($main::options{'dump'} or $main::options{'dump_users'}) {
print STDOUT "@{$result{'info'}}";
print STDOUT "@{$result{'warn'}}";
}
if ($err) {
if ($err >= 0) {
print STDERR "@{$result{'errors'}}";
exit 1;
}
exit 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment