aboutsummaryrefslogtreecommitdiff
path: root/lava_scheduler_app/checks.py
diff options
context:
space:
mode:
authorRĂ©mi Duraffort <remi.duraffort@linaro.org>2018-02-09 09:57:55 +0100
committerStevan Radakovic <stevan.radakovic@linaro.org>2018-03-22 08:38:15 +0000
commit2d37b3416d72048b786e756be7e5bafa550b6de2 (patch)
tree4e49a619f611f622137e12821fe22df5e9b70450 /lava_scheduler_app/checks.py
parent1ae6dda0b963a03f1abb329e82584edcde35fa7c (diff)
Remove is_pipeline
Change-Id: I6c753e93b6e3e51baf5c3602c499ef9699309cfc
Diffstat (limited to 'lava_scheduler_app/checks.py')
-rw-r--r--lava_scheduler_app/checks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lava_scheduler_app/checks.py b/lava_scheduler_app/checks.py
index 1601049ef..5c4adb576 100644
--- a/lava_scheduler_app/checks.py
+++ b/lava_scheduler_app/checks.py
@@ -32,7 +32,7 @@ from lava_scheduler_app.schema import SubmissionException
def check_health_checks(app_configs, **kwargs):
errors = []
- for device in Device.objects.filter(is_pipeline=True):
+ for device in Device.objects.all():
ht = device.get_health_check()
ht_disabled = device.device_type.disable_health_check
@@ -65,7 +65,7 @@ def check_health_checks(app_configs, **kwargs):
def check_device_configuration(app_configs, **kwargs):
errors = []
- for device in Device.objects.filter(Q(is_pipeline=True), ~Q(health=Device.HEALTH_RETIRED)):
+ for device in Device.objects.exclude(health=Device.HEALTH_RETIRED):
if not device.is_valid():
errors.append(Error('Invalid configuration', obj=device.hostname))