Minor fix
This commit is contained in:
parent
7ecaf11d07
commit
2ac4ae3a18
|
@ -584,7 +584,7 @@ sub PandoraFMS::Recon::Base::create_agent($$) {
|
|||
|
||||
# Resolve hostnames.
|
||||
my $host_name = (($self->{'resolve_names'} == 1) ? gethostbyaddr(inet_aton($device), AF_INET) : $device);
|
||||
my $agent = locate_agent($self->{'dbh'}, $host_name);
|
||||
my $agent = locate_agent($self->{'pa_config'}, $self->{'dbh'}, $host_name);
|
||||
|
||||
my ($agent_id, $agent_learning);
|
||||
if (!defined($agent)) {
|
||||
|
|
Loading…
Reference in New Issue