summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-08-13 10:00:25 +0200
committerSimon Rettberg2020-08-13 10:23:25 +0200
commitc4c79730367822faadfa7f955a73b9a0b45c5ede (patch)
tree5447435899fcd54213375713478bcfe49beb06c3
parent[exams] Make warnings for locations work with trees (diff)
downloadslx-admin-c4c79730367822faadfa7f955a73b9a0b45c5ede.tar.gz
slx-admin-c4c79730367822faadfa7f955a73b9a0b45c5ede.tar.xz
slx-admin-c4c79730367822faadfa7f955a73b9a0b45c5ede.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.
-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 4845b2f8..2a7e25f8 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);