Fixes for DE-LIST notifications
This commit is contained in:
@@ -58,7 +58,7 @@ class AbsentNodes extends Echomails
|
||||
$msg->addText("The following nodes have had their status changed, because they are absent from the network.\r\r");
|
||||
|
||||
// Nodes marked HOLD - will be marked down ...
|
||||
if (($x=$this->aos->filter(fn($item)=>$item->role & Address::NODE_HOLD))->count()) {
|
||||
if (($x=$this->aos->filter(fn($item)=>$item->active && ($item->role & Address::NODE_HOLD)))->count()) {
|
||||
$msg->addText("The following nodes have been marked HOLD:\r");
|
||||
|
||||
foreach ($x as $ao)
|
||||
@@ -68,7 +68,7 @@ class AbsentNodes extends Echomails
|
||||
}
|
||||
|
||||
// Nodes marked DOWN - will be delisted on...
|
||||
if (($x=$this->aos->filter(fn($item)=>$item->role & Address::NODE_DOWN))->count()) {
|
||||
if (($x=$this->aos->filter(fn($item)=>$item->active && ($item->role & Address::NODE_DOWN)))->count()) {
|
||||
$msg->addText("The following nodes have been marked DOWN:\r");
|
||||
|
||||
foreach ($x as $ao)
|
||||
|
Reference in New Issue
Block a user