mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Correction on addHost function to handle the force_add parameter in api (#5329)
This commit is contained in:
committed by
Neil Lathwood
parent
27bd0c625f
commit
8636a3c3a2
@ -261,7 +261,7 @@ function add_device()
|
||||
$port = $data['port'] ? mres($data['port']) : $config['snmp']['port'];
|
||||
$transport = $data['transport'] ? mres($data['transport']) : 'udp';
|
||||
$poller_group = $data['poller_group'] ? mres($data['poller_group']) : 0;
|
||||
$force_add = $data['force_add'] ? mres($data['force_add']) : 0;
|
||||
$force_add = $data['force_add'] ? true : false;
|
||||
if ($data['version'] == 'v1' || $data['version'] == 'v2c') {
|
||||
if ($data['community']) {
|
||||
$config['snmp']['community'] = array($data['community']);
|
||||
|
Reference in New Issue
Block a user