fix snmp_disable type (#14650)

This commit is contained in:
Tony Murray 2022-11-18 10:30:16 -06:00 committed by GitHub
parent 4107b37b9d
commit 63988a4615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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');