summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules-available/rebootcontrol/inc/rebootcontrol.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
index abbef0c9..4c668e53 100644
--- a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
+++ b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
@@ -307,7 +307,7 @@ class RebootControl
* @param array $list list of clients containing each keys 'macaddr' and 'clientip'
* @return string id of this job
*/
- public static function wakeMachines($list)
+ public static function wakeMachines($list, &$failed = [])
{
/* TODO: Refactor mom's spaghetti
* Now that I figured out what I want, do something like this:
@@ -449,6 +449,7 @@ class RebootControl
$ips = ArrayUtil::flattenByKey($unknown, 'clientip');
$errors .= "**** WARNING ****\nThe following clients do not belong to a known subnet (bug?)\n" . implode("\n", $ips) . "\n";
}
+ $failed = array_merge($bad, $unknown);
$id = Util::randomUuid();
self::addTask($id, self::TASK_WOL, $list, $tasks, ['log' => $errors]);
return $id;