diff options
author | Simon Rettberg | 2020-01-24 14:28:17 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-01-24 14:28:17 +0100 |
commit | 64ff57ce51901141184351a51fe1d9839d182ca6 (patch) | |
tree | 9749701dad00055c39cab92fe4074e1d3b0eeea1 /modules-available/rebootcontrol/inc | |
parent | [rebootcontrol] Try harder to silence notice about ref passing (diff) | |
download | slx-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.
Diffstat (limited to 'modules-available/rebootcontrol/inc')
-rw-r--r-- | modules-available/rebootcontrol/inc/rebootcontrol.inc.php | 2 |
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) { |