mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 02:18:39 +00:00
fix snmp_disable type (#14650)
This commit is contained in:
parent
4107b37b9d
commit
63988a4615
@ -160,7 +160,7 @@ class ValidateDeviceAndCreate
|
||||
}
|
||||
|
||||
if ($this->ping_fallback) {
|
||||
$this->device->snmp_disable = 1;
|
||||
$this->device->snmp_disable = true;
|
||||
$this->device->os = 'ping';
|
||||
|
||||
return;
|
||||
|
@ -114,7 +114,7 @@ class DeviceAdd extends LnmsCommand
|
||||
]);
|
||||
|
||||
if ($this->option('ping-only')) {
|
||||
$device->snmp_disable = 1;
|
||||
$device->snmp_disable = true;
|
||||
$device->os = $this->option('os');
|
||||
$device->hardware = $this->option('hardware');
|
||||
$device->sysName = $this->option('sysName');
|
||||
|
Loading…
Reference in New Issue
Block a user