mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Throw error when host already exists rather than say it is due to snmp (#5789)
This commit is contained in:
committed by
Tony Murray
parent
389cf5414c
commit
aab1cdac49
@ -684,6 +684,8 @@ function createHost($host, $community, $snmpver, $port = 161, $transport = 'udp'
|
||||
oxidized_reload_nodes();
|
||||
return $device_id;
|
||||
}
|
||||
} else {
|
||||
throw new HostExistsException("Already have host $host ($snmphost)");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user