From 421b07f95726b50ec412727ee7fb571a09b3c032 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 31 May 2022 15:41:08 +0200 Subject: [remoteaccess] Include locationid in WOL task metadata .... so the proper location information can be displayed on the WOL task status page. --- modules-available/remoteaccess/inc/remoteaccess.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/remoteaccess') 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"); -- cgit v1.2.3-55-g7522