From b778bf45ae54ad750c167847ee8bac0182d7a9ed Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 30 Sep 2017 22:05:55 +0200 Subject: [PATCH] Fix logic in healthy/unhealthy --- modules/roles/files/mirror_health/mirror-health | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/roles/files/mirror_health/mirror-health b/modules/roles/files/mirror_health/mirror-health index c2ef59010..62148828f 100755 --- a/modules/roles/files/mirror_health/mirror-health +++ b/modules/roles/files/mirror_health/mirror-health @@ -37,8 +37,8 @@ while True: if lm > latest_ts: latest_ts = lm local_lm = last_modified(retrieve_from_host('localhost', URL)) - logging.debug("lm for localhost: %s", lm) - if latest_ts <= local_lm: + logging.debug("lm for localhost: %s", local_lm) + if local_lm < latest_ts: try: logging.info("considering myself unhealthy my ts=%s latest_ts=%s", local_lm, latest_ts) os.remove(HEALTH_FILE) -- 2.20.1