summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe
diff options
context:
space:
mode:
authorSimon Rettberg2020-08-13 10:00:25 +0200
committerSimon Rettberg2020-08-13 10:00:25 +0200
commitc4b9aeb9b72d3b612f53165bb3ca9c0a6a65ea9c (patch)
tree318170c863685bfc76abdbd0af57df23a161d4c8 /modules-available/serversetup-bwlp-ipxe
parent[exams] Make warnings for locations work with trees (diff)
downloadslx-admin-c4b9aeb9b72d3b612f53165bb3ca9c0a6a65ea9c.tar.gz
slx-admin-c4b9aeb9b72d3b612f53165bb3ca9c0a6a65ea9c.tar.xz
slx-admin-c4b9aeb9b72d3b612f53165bb3ca9c0a6a65ea9c.zip
[serversetup-bwlp-ipxe] Show all machines in Localboot override list
It's a bad idea to hide machines that haven't been seen in a while, since they could have an override defined, which would get lost if you save the list again.
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/page.inc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php
index 4e3501fb..1165d641 100644
--- a/modules-available/serversetup-bwlp-ipxe/page.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php
@@ -266,15 +266,13 @@ class Page_ServerSetup extends Page
$default = Localboot::getDefault();
$optionList = $this->makeSelectArray(Localboot::BOOT_METHODS, $default);
// Exceptions
- $cutoff = strtotime('-90 days');
$models = [];
$res = Database::simpleQuery('SELECT m.systemmodel, cnt, sl.pcbios AS PCBIOS, sl.efi AS EFI FROM (
SELECT m2.systemmodel, Count(*) AS cnt FROM machine m2
- WHERE m2.lastseen > :cutoff
GROUP BY systemmodel
) m
LEFT JOIN serversetup_localboot sl USING (systemmodel)
- ORDER BY systemmodel', ['cutoff' => $cutoff]);
+ ORDER BY systemmodel');
while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
$row['modelesc'] = urlencode($row['systemmodel']);
$row['options'] = $this->makeSelectArray(Localboot::BOOT_METHODS, $row);