mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix dev:simulate (#12596)
This commit is contained in:
@@ -80,7 +80,7 @@ class DevSimulate extends LnmsCommand
|
||||
|
||||
private function addDevice($community)
|
||||
{
|
||||
$hostname = $this->option('new') ? $community : 'snmpsim';
|
||||
$hostname = $this->option('multiple') ? $community : 'snmpsim';
|
||||
$device = Device::firstOrNew(['hostname' => $hostname]);
|
||||
$action = $device->exists ? 'updated' : 'added';
|
||||
|
||||
|
Reference in New Issue
Block a user