From 5e49c2709b476abdff03f6598bd3e8f2789fd1ce Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 28 Sep 2018 19:15:33 -0500 Subject: [PATCH] Expose new `disk_type` field for tempmon client views --- tailbone/views/tempmon/clients.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tailbone/views/tempmon/clients.py b/tailbone/views/tempmon/clients.py index 59cc4fdf..3fd41723 100644 --- a/tailbone/views/tempmon/clients.py +++ b/tailbone/views/tempmon/clients.py @@ -62,6 +62,7 @@ class TempmonClientView(MasterView): 'config_key', 'hostname', 'location', + 'disk_type', 'delay', 'probes', 'notes', @@ -88,6 +89,9 @@ class TempmonClientView(MasterView): g.filters['location'].default_verb = 'contains' g.set_link('location') + # disk_type + g.set_enum('disk_type', self.enum.TEMPMON_DISK_TYPE) + # archived g.filters['archived'].default_active = True g.filters['archived'].default_verb = 'is_false' @@ -98,6 +102,10 @@ class TempmonClientView(MasterView): # config_key f.set_validator('config_key', self.unique_config_key) + # disk_type + f.set_enum('disk_type', self.enum.TEMPMON_DISK_TYPE) + f.widgets['disk_type'].values.insert(0, ('', "(unknown)")) + # probes f.set_renderer('probes', self.render_probes)