diff options
author | Simon Rettberg | 2018-04-25 16:46:18 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-25 16:46:18 +0200 |
commit | 7d4b41dc7e85b4f5f249c61db11ae27d53144c9c (patch) | |
tree | 5e36609f07cb851a5bbbecda66c42b0e51f76002 /modules-available/rebootcontrol/inc/rebootqueries.inc.php | |
parent | [locations] Fix machine counting (diff) | |
download | slx-admin-7d4b41dc7e85b4f5f249c61db11ae27d53144c9c.tar.gz slx-admin-7d4b41dc7e85b4f5f249c61db11ae27d53144c9c.tar.xz slx-admin-7d4b41dc7e85b4f5f249c61db11ae27d53144c9c.zip |
[rebootcontrol] Nicer status list; list of all running jobs
Diffstat (limited to 'modules-available/rebootcontrol/inc/rebootqueries.inc.php')
-rw-r--r-- | modules-available/rebootcontrol/inc/rebootqueries.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/rebootcontrol/inc/rebootqueries.inc.php b/modules-available/rebootcontrol/inc/rebootqueries.inc.php index 525a9e58..063b36e4 100644 --- a/modules-available/rebootcontrol/inc/rebootqueries.inc.php +++ b/modules-available/rebootcontrol/inc/rebootqueries.inc.php @@ -44,13 +44,13 @@ class RebootQueries /** * Get machines by list of UUIDs * @param string[] $list list of system UUIDs - * @return array list of machines with machineuuid, clientip, state and locationid + * @return array list of machines with machineuuid, hostname, clientip, state and locationid */ public static function getMachinesByUuid($list) { if (empty($list)) return array(); - $res = Database::simpleQuery("SELECT machineuuid, clientip, state, locationid FROM machine + $res = Database::simpleQuery("SELECT machineuuid, hostname, clientip, state, locationid FROM machine WHERE machineuuid IN (:list)", compact('list')); return $res->fetchAll(PDO::FETCH_ASSOC); } |