summaryrefslogtreecommitdiffstats
path: root/modules-available/remoteaccess
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-31 15:41:08 +0200
committerSimon Rettberg2022-05-31 15:41:08 +0200
commit421b07f95726b50ec412727ee7fb571a09b3c032 (patch)
tree1a337e92e8c333f95bcc02c6fb80accd4cea9385 /modules-available/remoteaccess
parent[dnbd3] Hide speed bar for offline servers (diff)
downloadslx-admin-421b07f95726b50ec412727ee7fb571a09b3c032.tar.gz
slx-admin-421b07f95726b50ec412727ee7fb571a09b3c032.tar.xz
slx-admin-421b07f95726b50ec412727ee7fb571a09b3c032.zip
[remoteaccess] Include locationid in WOL task metadata
.... so the proper location information can be displayed on the WOL task status page.
Diffstat (limited to 'modules-available/remoteaccess')
-rw-r--r--modules-available/remoteaccess/inc/remoteaccess.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/remoteaccess/inc/remoteaccess.inc.php b/modules-available/remoteaccess/inc/remoteaccess.inc.php
index a45915e8..1910c595 100644
--- a/modules-available/remoteaccess/inc/remoteaccess.inc.php
+++ b/modules-available/remoteaccess/inc/remoteaccess.inc.php
@@ -55,7 +55,7 @@ class RemoteAccess
private static function tryWakeMachines($locs, $num)
{
- $res = Database::simpleQuery("SELECT m.machineuuid, m.macaddr, m.clientip FROM machine m
+ $res = Database::simpleQuery("SELECT m.machineuuid, m.macaddr, m.clientip, m.locationid FROM machine m
LEFT JOIN remoteaccess_machine rm USING (machineuuid)
WHERE m.locationid IN ($locs) AND m.state IN ('OFFLINE', 'STANDBY')
ORDER BY rm.woltime ASC");