summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-01-24 14:28:17 +0100
committerSimon Rettberg2020-01-24 14:28:17 +0100
commit64ff57ce51901141184351a51fe1d9839d182ca6 (patch)
tree9749701dad00055c39cab92fe4074e1d3b0eeea1
parent[rebootcontrol] Try harder to silence notice about ref passing (diff)
downloadslx-admin-64ff57ce51901141184351a51fe1d9839d182ca6.tar.gz
slx-admin-64ff57ce51901141184351a51fe1d9839d182ca6.tar.xz
slx-admin-64ff57ce51901141184351a51fe1d9839d182ca6.zip
[rebootcontrol] Fix WOL via jumphost (missing array index)
Lookup of jumphost depends on the hostid of the jumphost in its according array.
-rw-r--r--modules-available/rebootcontrol/inc/rebootcontrol.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
index 5e02eafd..f392dcdc 100644
--- a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
+++ b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
@@ -349,7 +349,7 @@ class RebootControl
$subnets[$net]['jumphosts'][$row['hostid']] = $row['hostid'];
}
$row['jobs'] = [];
- $jumphosts[] = $row;
+ $jumphosts[$row['hostid']] = $row;
}
// Group by subnet
foreach ($list as $client) {