Fixed a typo in a module name.

This commit is contained in:
Ramon Novoa 2014-10-27 13:21:09 +01:00
parent 334c843482
commit 8596b1365c
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ sub create_pandora_agent($) {
my $if_desc = ($mac ne '' ? "MAC $mac " : '') . ($ip ne '' ? "IP $ip" : ''); my $if_desc = ($mac ne '' ? "MAC $mac " : '') . ($ip ne '' ? "IP $ip" : '');
# Check whether the module already exists. # Check whether the module already exists.
my $module_id = get_agent_module_id($DBH, "if_${if_name}", $agent_id); my $module_id = get_agent_module_id($DBH, "ifOperStatus_${if_name}", $agent_id);
next if ($module_id > 0); next if ($module_id > 0);
# Encode problematic characters. # Encode problematic characters.