diff options
author | Neil Williams <neil.williams@linaro.org> | 2017-06-22 14:05:02 +0100 |
---|---|---|
committer | Senthil Kumaran Shanmugasundaram <senthil.kumaran@linaro.org> | 2017-06-27 03:58:07 +0000 |
commit | 5a7d4be95cecff0be823d1bfc888a31e5e6e0d0a (patch) | |
tree | d9ce10ad21b3def5df9f831fe1edcc4db7b9d39b /lava_scheduler_app/checks.py | |
parent | 5713f52952feb95b28d0bd2e71dbbaad224880cf (diff) |
Avoid warning for health checks of retired devices.
Change-Id: I9344f8893b9678c1acade664ad5b321535fcc227
Diffstat (limited to 'lava_scheduler_app/checks.py')
-rw-r--r-- | lava_scheduler_app/checks.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lava_scheduler_app/checks.py b/lava_scheduler_app/checks.py index bd56e5bfe..be04dc7db 100644 --- a/lava_scheduler_app/checks.py +++ b/lava_scheduler_app/checks.py @@ -12,8 +12,10 @@ def check_health_checks(app_configs, **kwargs): ht = device.get_health_check() ht_disabled = device.device_type.disable_health_check - # Every device should have a health check, provided health checks are - # not disabled for this device type. + # All active devices should have a health check, + # provided that health checks are not disabled for this device type. + if device.status == Device.RETIRED: + continue if ht is None and not ht_disabled: errors.append(Debug("No health check", obj=device.hostname)) continue |