fix rancid, graph, and nodemonitor
This commit is contained in:
@@ -18,7 +18,7 @@ register_worker({ phase => 'main' }, sub {
|
||||
my ($job, $workerconf) = @_;
|
||||
my $config = setting('rancid') || {};
|
||||
|
||||
my $domain_suffix = setting('domain_suffix') || '';
|
||||
my $domain_suffix = setting('domain_suffix');
|
||||
my $delimiter = $config->{delimiter} || ';';
|
||||
my $down_age = $config->{down_age} || '1 day';
|
||||
my $default_group = $config->{default_group} || 'default';
|
||||
@@ -65,7 +65,7 @@ register_worker({ phase => 'main' }, sub {
|
||||
}
|
||||
|
||||
my $name = check_acl_no($d, $config->{by_ip}) ? $d->ip : ($d->dns || $d->name);
|
||||
$name =~ s/$domain_suffix$// if check_acl_no($d, $config->{by_hostname});
|
||||
$name =~ s/$domain_suffix// if check_acl_no($d, $config->{by_hostname});
|
||||
|
||||
my ($group) =
|
||||
(pairkeys pairfirst { check_acl_no($d, $b) } %{ $config->{groups} }) || $default_group;
|
||||
|
||||
Reference in New Issue
Block a user