Dont attempt to process System::default systems when processing address:idle
This commit is contained in:
parent
a46ce7ff9e
commit
90c65fd5e1
@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
|
||||
use App\Classes\FTN\Message;
|
||||
use App\Models\{Address,Domain};
|
||||
use App\Models\{Address,Domain,System};
|
||||
use App\Notifications\Echomails\AbsentNodes;
|
||||
use App\Notifications\Emails\NodeMarkedDown as NodeMarkedDownEmail;
|
||||
use App\Notifications\Netmails\NodeMarkedDown as NodeMarkedDownNetmail;
|
||||
@ -132,6 +132,12 @@ class AddressIdle implements ShouldQueue
|
||||
|
||||
// Mark nodes as HOLD
|
||||
foreach ($this->old($this->do,config('fido.idle.hold'),0,$this->ao) as $ao) {
|
||||
// Ignore any systems that are a Discoverd System
|
||||
if ($ao->system->name === System::default) {
|
||||
Log::alert(sprintf('%s:! Ignoring HOLD for discovered System [%s]',self::LOGKEY,$ao->ftn));
|
||||
continue;
|
||||
}
|
||||
|
||||
// Ignore any systems already marked hold or down
|
||||
if ($ao->role & (Address::NODE_DOWN|Address::NODE_HOLD))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user