Throw error when host already exists rather than say it is due to snmp (#5789)

This commit is contained in:
Neil Lathwood
2017-02-06 14:16:00 +00:00
committed by Tony Murray
parent 389cf5414c
commit aab1cdac49

View File

@ -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)");
}
}