Added filter to get_bad_conf_files when is a srv conf file. Ticket #4163
This commit is contained in:
parent
2a596dc31c
commit
a376105f97
|
@ -3962,6 +3962,7 @@ sub cli_get_bad_conf_files() {
|
||||||
my $missings = 0;
|
my $missings = 0;
|
||||||
my @tokens = ("server_ip","server_path","temporal","log_file");
|
my @tokens = ("server_ip","server_path","temporal","log_file");
|
||||||
|
|
||||||
|
if ($file !~ /.srv./) {
|
||||||
foreach my $token (@tokens) {
|
foreach my $token (@tokens) {
|
||||||
if(enterprise_hook('pandora_check_conf_token',[$conf->{incomingdir}.'/conf/'.$file, $token]) == 0) {
|
if(enterprise_hook('pandora_check_conf_token',[$conf->{incomingdir}.'/conf/'.$file, $token]) == 0) {
|
||||||
$missings++;
|
$missings++;
|
||||||
|
@ -3974,6 +3975,7 @@ sub cli_get_bad_conf_files() {
|
||||||
$bad_files++;
|
$bad_files++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($bad_files == 0) {
|
if($bad_files == 0) {
|
||||||
print_log "[INFO] No bad files found\n\n";
|
print_log "[INFO] No bad files found\n\n";
|
||||||
|
|
Loading…
Reference in New Issue